diff --git a/Containerfile b/Containerfile index 530fcc4..dacc7c8 100644 --- a/Containerfile +++ b/Containerfile @@ -5,7 +5,7 @@ COPY build.sh /build.sh FROM quay.io/centos-bootc/centos-bootc:c10s COPY repos/docker-ce.repo /etc/yum.repos.d/docker-ce.repo - +COPY build_files/docker.conf /usr/lib/sysusers.d/docker.conf RUN --mount=type=tmpfs,dst=/var \ --mount=type=tmpfs,dst=/tmp \ diff --git a/build.sh b/build.sh index 37db5d9..db60862 100755 --- a/build.sh +++ b/build.sh @@ -89,7 +89,8 @@ if rpm -q docker-ce >/dev/null; then fi -rm -rf /etc/group + +# rm -rf /etc/group # 6. Disable Docker repository to prevent runtime updates echo "Docker CE installation complete!" diff --git a/build_files/docker.conf b/build_files/docker.conf new file mode 100644 index 0000000..f6cd589 --- /dev/null +++ b/build_files/docker.conf @@ -0,0 +1 @@ +g docker 951