summaryrefslogtreecommitdiff
path: root/contrib/podmanimage/upstream/Dockerfile
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-11-29 09:33:50 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2021-11-29 09:35:32 -0500
commit2e50514ade604da37987064846b1adec0baecd02 (patch)
tree0caddfb9aa503d277095fe1f1673b1624dba6d68 /contrib/podmanimage/upstream/Dockerfile
parent3d19f1a7fac5705518693cad3f2c7f94dcc2f1d4 (diff)
downloadpodman-2e50514ade604da37987064846b1adec0baecd02.tar.gz
podman-2e50514ade604da37987064846b1adec0baecd02.tar.bz2
podman-2e50514ade604da37987064846b1adec0baecd02.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/upstream/Dockerfile')
-rw-r--r--contrib/podmanimage/upstream/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/podmanimage/upstream/Dockerfile b/contrib/podmanimage/upstream/Dockerfile
index 89ec6e39b..864227f89 100644
--- a/contrib/podmanimage/upstream/Dockerfile
+++ b/contrib/podmanimage/upstream/Dockerfile
@@ -68,11 +68,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