fatherlinux

Podman in Podman with UBI

Aug 5th, 2019
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1.  
  2. cat Dockerfile
  3. FROM registry.access.redhat.com/ubi8/ubi
  4.  
  5. MAINTAINER fatherlinux <scott.mccarty@gmail.com>
  6.  
  7. RUN yum install -y vim podman
  8.  
  9. RUN cp /etc/containers/storage.conf /etc/containers/storage.conf.orig
  10.  
  11. RUN sed -i 's/driver = "overlay"/driver = "vfs"/' /etc/containers/storage.conf
  12.  
  13. RUN cp /usr/share/containers/libpod.conf /etc/containers/
  14.  
  15. RUN sed -i 's/cgroup_manager = "systemd"/cgroup_manager = "cgroupfs"/' /etc/containers/libpod.conf
  16.  
  17. RUN echo 'events_logger = "file"' >> /etc/containers/libpod.conf
  18.  
  19. RUN sed -i "s/'registry.redhat.io'/'registry.access.redhat.com', 'registry.redhat.io'/" /etc/containers/registries.conf
  20.  
  21. RUN podman pull ubi8/ubi-minimal
  22.  
  23.  
  24.  
  25. podman build -t podman .
  26.  
  27. podman run --privileged -it localhost/podman bash
  28.  
  29. bash-4.4# podman run -it ubi8/ubi-minimal bash
  30. bash-4.4#
Add Comment
Please, Sign In to add comment