Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat Dockerfile
- FROM registry.access.redhat.com/ubi8/ubi
- MAINTAINER fatherlinux <scott.mccarty@gmail.com>
- RUN yum install -y vim podman
- RUN cp /etc/containers/storage.conf /etc/containers/storage.conf.orig
- RUN sed -i 's/driver = "overlay"/driver = "vfs"/' /etc/containers/storage.conf
- RUN cp /usr/share/containers/libpod.conf /etc/containers/
- RUN sed -i 's/cgroup_manager = "systemd"/cgroup_manager = "cgroupfs"/' /etc/containers/libpod.conf
- RUN echo 'events_logger = "file"' >> /etc/containers/libpod.conf
- RUN sed -i "s/'registry.redhat.io'/'registry.access.redhat.com', 'registry.redhat.io'/" /etc/containers/registries.conf
- RUN podman pull ubi8/ubi-minimal
- podman build -t podman .
- podman run --privileged -it localhost/podman bash
- bash-4.4# podman run -it ubi8/ubi-minimal bash
- bash-4.4#
Add Comment
Please, Sign In to add comment