github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/contrib/podmanimage/testing/Dockerfile (about)

     1  # testing/Dockerfile
     2  #
     3  # Build a Podman image using the latest
     4  # version of Podman that is in updates-testing
     5  # on the Fedoras Updates System.  At times this
     6  # may be the same the latest stable version.
     7  # https://bodhi.fedoraproject.org/updates/?search=podman
     8  # This image can be used to create a secured container
     9  # that runs safely with privileges within the container.
    10  #
    11  FROM registry.fedoraproject.org/fedora:latest
    12  
    13  # Don't include container-selinux and remove
    14  # directories used by yum that are just taking
    15  # up space.
    16  RUN useradd podman; yum -y update; yum -y reinstall shadow-utils; yum -y install podman fuse-overlayfs --exclude container-selinux --enablerepo updates-testing; rm -rf /var/cache /var/log/dnf* /var/log/yum.*
    17  
    18  ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/containers.conf /etc/containers/
    19  
    20  # chmod containers.conf and adjust storage.conf to enable Fuse storage.
    21  RUN chmod 644 /etc/containers/containers.conf; sed -i -e 's|^#mount_program|mount_program|g' -e '/additionalimage.*/a "/var/lib/shared",' -e 's|^mountopt[[:space:]]*=.*$|mountopt = "nodev,fsync=0"|g' /etc/containers/storage.conf
    22  RUN mkdir -p /var/lib/shared/overlay-images /var/lib/shared/overlay-layers /var/lib/shared/vfs-images /var/lib/shared/vfs-layers; touch /var/lib/shared/overlay-images/images.lock; touch /var/lib/shared/overlay-layers/layers.lock; touch /var/lib/shared/vfs-images/images.lock; touch /var/lib/shared/vfs-layers/layers.lock
    23  
    24  ENV _CONTAINERS_USERNS_CONFIGURED=""