From 2a974e8b946920256bf21cae74380b4f06c048d3 Mon Sep 17 00:00:00 2001 From: Blake Burkhart Date: Mon, 14 Jun 2021 14:13:51 -0500 Subject: Create user storage dir with correct permissions Docker VOLUMEs will inherit permissions from an existing directory at the same path. If the path does not exist, the directory will be owned by root which makes this image unusable in rootless mode. Signed-off-by: Blake Burkhart --- contrib/podmanimage/stable/Dockerfile | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/podmanimage/stable') diff --git a/contrib/podmanimage/stable/Dockerfile b/contrib/podmanimage/stable/Dockerfile index 696268c85..2f86dd4ae 100644 --- a/contrib/podmanimage/stable/Dockerfile +++ b/contrib/podmanimage/stable/Dockerfile @@ -21,6 +21,7 @@ echo podman:10000:5000 > /etc/subgid; VOLUME /var/lib/containers VOLUME /home/podman/.local/share/containers +RUN mkdir -p /home/podman/.local/share/containers 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 -- cgit v1.2.3-54-g00ecf