From 13f6261f84834f03676482535430f7357c750ed5 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Wed, 16 Feb 2022 17:15:47 +0100 Subject: increase subuid and subgid in image increase the number of ids available to the podman users when running as rootless. Signed-off-by: Chmouel Boudjnah --- contrib/podmanimage/upstream/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/podmanimage/upstream') diff --git a/contrib/podmanimage/upstream/Dockerfile b/contrib/podmanimage/upstream/Dockerfile index 4b44c74c2..0769a7612 100644 --- a/contrib/podmanimage/upstream/Dockerfile +++ b/contrib/podmanimage/upstream/Dockerfile @@ -65,8 +65,8 @@ RUN yum -y update; rpm --restore shadow-utils 2>/dev/null; yum -y install --exc yum clean all; RUN useradd podman; \ -echo podman:10000:5000 > /etc/subuid; \ -echo podman:10000:5000 > /etc/subgid; +echo -e "podman:1:999\npodman:1001:64535" > /etc/subuid; \ +echo -e "podman:1:999\npodman:1001:64535" > /etc/subgid; ADD https://raw.githubusercontent.com/containers/podman/main/contrib/podmanimage/stable/containers.conf /etc/containers/containers.conf ADD https://raw.githubusercontent.com/containers/podman/main/contrib/podmanimage/stable/podman-containers.conf /home/podman/.config/containers/containers.conf -- cgit v1.2.3-54-g00ecf