Replies: 5 comments 12 replies
-
By the way, I also need the |
Beta Was this translation helpful? Give feedback.
-
Thanks for reaching out, @woopla!
Does the path you specify in |
Beta Was this translation helpful? Give feedback.
-
With this command it looks like User WOOPLA is attempting to create a directory owned by $UID within the user namespace on an NFS share and it is being blocked, because WOOPLA is not allowed to change ownership of a directory. NFS Server does not understand User Namespace would be my assumption. |
Beta Was this translation helpful? Give feedback.
-
I was able to work on this some more today: the problem is one of permissions indeed, but that's because > id -G
6236 205 235 6043 6154 8551 8600 50043 51171 51434 51438
> podman --runtime /usr/bin/crun run --rm -it --user="$(id -ur):$(id -gr)" --userns=keep-id --group-add=keep-groups debian:stable-slim id -G
6236 65534 I also tried to pass > podman --runtime /usr/bin/crun run --rm -it --user="$(id -ur):$(id -gr)" --userns=keep-id --group-add 205 --group-add 6043 --group-add 6154 --group-add 100224 --group-add 235 --group-add 51438 --group-add 50043 --group-add 51434 --group-add 51171 --group-add 8551 --group-add 8600 debian:stable-slim id -G
Error: OCI runtime error: setgroups: Invalid argument (same thing happens if I do @rhatdan and @vrothberg what should I change to the arguments for this to work? I need the groups inside the container to match (or be a superset of) the ones on the host. |
Beta Was this translation helpful? Give feedback.
-
Run sleep inside of the container and then outside of the container look at the UID and GIDs of the process running sleep. That should give you information on the process attempting to do the mkdir. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have an ongoing project to provide build capacity for multiple RHEL versions from a single RHEL 8 host (this is for a binary shipped to customers and supported on RHEL6,7,8). This used to be working with Docker, but since Podman is better supported on RHEL 8, I want to switch to Podman.
I can almost run the script unchanged with
podman-docker
installed, except for the-w
option:Without using
-w
I can get in the container just fine, and the NFS location ownership looks correct - I can write to it and it appears as the correct owner outside of the container (NFS shares are mounted withroot_squash
).I'm running what's currently available on RHEL 8.4:
> podman version Version: 3.0.2-dev API Version: 3.0.0 Go Version: go1.15.7 Built: Wed Apr 7 01:36:54 2021 OS/Arch: linux/amd64
Not sure if this is a bug or limitation in Podman rootless, or if I need to change something in the options there...
Thanks,
Clément
Beta Was this translation helpful? Give feedback.
All reactions