From adbddac60fd9204b451019f37ea33840e857ec28 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 2 Apr 2021 09:14:59 -0400 Subject: Update podman image Dockerfile to support Podman in container [NO TEST NEEDED] Can not test this in CI/CD system since it needs to be merged in order for the Dockerfiles to even work. Modified the /etc/subuid and /etc/subgid to be able to run in rootless containers. The Range can not be the same as on the host. Add /home/podman/.config/containers/containers.conf to automatically mount /proc on /proc while inside of the container. This prevents additional permissions being required that are blocked when not in --privileged mode. Setup volumes for /var/lib/containers and /home/podman/.local/share/containwers This will prevent the errors where people are doing overlay on overlay. Signed-off-by: Daniel J Walsh --- contrib/podmanimage/stable/podman-containers.conf | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 contrib/podmanimage/stable/podman-containers.conf (limited to 'contrib/podmanimage/stable/podman-containers.conf') diff --git a/contrib/podmanimage/stable/podman-containers.conf b/contrib/podmanimage/stable/podman-containers.conf new file mode 100644 index 000000000..503cca365 --- /dev/null +++ b/contrib/podmanimage/stable/podman-containers.conf @@ -0,0 +1,4 @@ +[containers] +volumes = [ + "/proc:/proc", +] -- cgit v1.2.3-54-g00ecf