summaryrefslogtreecommitdiff
path: root/contrib/podmanimage/testing/Dockerfile
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-11-29 09:33:50 -0500
committerMatthew Heon <mheon@redhat.com>2021-12-06 15:34:37 -0500
commit75fc7e43e0bcc94a510ea42efb4d05d1e7ca8a26 (patch)
tree913d0d62e3058d5222db8bc84b767338fb95e164 /contrib/podmanimage/testing/Dockerfile
parentab5ca6f759d80cd3725aec1678678f57fd795e71 (diff)
downloadpodman-75fc7e43e0bcc94a510ea42efb4d05d1e7ca8a26.tar.gz
podman-75fc7e43e0bcc94a510ea42efb4d05d1e7ca8a26.tar.bz2
podman-75fc7e43e0bcc94a510ea42efb4d05d1e7ca8a26.zip
Move the chown to after the ADDs
I have noticed that the containers.conf file in the /home/podman directory is owned by root and not Podman. This change fixes the ownership. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'contrib/podmanimage/testing/Dockerfile')
-rw-r--r--contrib/podmanimage/testing/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/podmanimage/testing/Dockerfile b/contrib/podmanimage/testing/Dockerfile
index 03da05806..e7228ea42 100644
--- a/contrib/podmanimage/testing/Dockerfile
+++ b/contrib/podmanimage/testing/Dockerfile
@@ -19,11 +19,11 @@ RUN useradd podman; \
echo podman:10000:5000 > /etc/subuid; \
echo podman:10000:5000 > /etc/subgid;
-RUN mkdir -p /home/podman/.local/share/containers; chown podman:podman -R /home/podman
-
ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/containers.conf /etc/containers/containers.conf
ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/podman-containers.conf /home/podman/.config/containers/containers.conf
+RUN mkdir -p /home/podman/.local/share/containers; chown podman:podman -R /home/podman
+
# Note VOLUME options must always happen after the chown call above
# RUN commands can not modify existing volumes
VOLUME /var/lib/containers