Closed adityashah1212 closed 5 years ago
Are you running this as nonroot?
On RHEL/Centos systems, we currently do not support running as non-root. These systems do not have a newuidmap and newgidmap (Part of newer versions of shadow-utils). We are hoping to get this package updated in RHEL7.7 and hopefully earlier.
Are you running this as nonroot?
Yes this was without root.
On RHEL/Centos systems, we currently do not support running as non-root. These systems do not have a newuidmap and newgidmap (Part of newer versions of shadow-utils). We are hoping to get this package updated in RHEL7.7 and hopefully earlier.
Any suggestions on how should I go about this. Lets just say, I can't use root on the machine I intend to make the images on, and I can't use anything above RHEL 7.5.
Well you could build the latest shadow-utils and install it on this system, then configure the /etc/subuid and /etc/subgid files, and it would work.
That sounds reasonable I guess. What would be the minimum version of shadow-utils required?
I used the source rpm from fedora 29 base image. It works now. Thanks :)
BTW can we have this issue related to newgidmap and newuidmap documented somewhere. For people ignorant of internal workings, it is easy for them to miss.
@adityashah1212 good suggestion. I'll see if I can at least get a note up on the install RHEL instructions.
@adityashah1212 can we close this issue?
Description I am having a problem making a rootless build using podman. The Dockerfile I am using looks like this.
Steps to reproduce the issue:
podman build -t centos/base:7.5.1804-1 -f Dockerfile --squash .
Describe the results you received:
Describe the results you expected: A image should be built and loaded with tag localhost/centos/base:7.5.1804-1
Output of
rpm -q podman
: I am using podman, so giving podman info (rpm is built using https://git.centos.org/commit/rpms!podman.git/538a8cad666447915d68b242070adab42ec034a7). buildah is not installedOutput of
podman version
if reporting apodman build
issue:*Output of `cat /etc/release`:**
Output of
uname -a
:Output of
cat /etc/containers/storage.conf
: