diff --git a/contrib/skopeoimage/stable/Dockerfile b/contrib/skopeoimage/stable/Dockerfile index e984629c21..aac4601b10 100644 --- a/contrib/skopeoimage/stable/Dockerfile +++ b/contrib/skopeoimage/stable/Dockerfile @@ -13,7 +13,7 @@ FROM registry.fedoraproject.org/fedora:32 # up space. Also reinstall shadow-utils as without # doing so, the setuid/setgid bits on newuidmap # and newgidmap are lost in the Fedora images. -RUN useradd skopeo; yum -y update; yum -y reinstall shadow-utils; yum -y install skopeo fuse-overlayfs --exclude container-selinux; yum clean all; rm -rf /var/cache /var/log/dnf* /var/log/yum.*; +RUN useradd skopeo; yum -y update; yum -y reinstall shadow-utils; yum -y install skopeo fuse-overlayfs --exclude container-selinux; yum -y clean all; rm -rf /var/cache/dnf/* /var/log/dnf* /var/log/yum* # Adjust storage.conf to enable Fuse storage. RUN 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 diff --git a/contrib/skopeoimage/testing/Dockerfile b/contrib/skopeoimage/testing/Dockerfile index 1b01405db9..39c0ac1d7a 100644 --- a/contrib/skopeoimage/testing/Dockerfile +++ b/contrib/skopeoimage/testing/Dockerfile @@ -14,7 +14,7 @@ FROM registry.fedoraproject.org/fedora:32 # up space. Also reinstall shadow-utils as without # doing so, the setuid/setgid bits on newuidmap # and newgidmap are lost in the Fedora images. -RUN useradd skopeo; yum -y update; yum -y reinstall shadow-utils; yum -y install skopeo fuse-overlayfs --enablerepo updates-testing --exclude container-selinux; yum clean all; rm -rf /var/cache /var/log/dnf* /var/log/yum.*; +RUN useradd skopeo; yum -y update; yum -y reinstall shadow-utils; yum -y install skopeo fuse-overlayfs --enablerepo updates-testing --exclude container-selinux; yum -y clean all; rm -rf /var/cache/dnf/* /var/log/dnf* /var/log/yum* # Adjust storage.conf to enable Fuse storage. RUN 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 diff --git a/contrib/skopeoimage/upstream/Dockerfile b/contrib/skopeoimage/upstream/Dockerfile index 9be872d20c..b44f3b99ca 100644 --- a/contrib/skopeoimage/upstream/Dockerfile +++ b/contrib/skopeoimage/upstream/Dockerfile @@ -33,7 +33,8 @@ make bin/skopeo;\ make install;\ rm -rf /root/skopeo/*; \ yum -y remove git golang go-md2man make; \ -yum clean all; rm -rf /var/cache /var/log/dnf* /var/log/yum.*; +yum -y clean all; yum -y clean all; rm -rf /var/cache/dnf/* /var/log/dnf* /var/log/yum* + # Adjust storage.conf to enable Fuse storage. RUN 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