Podman rootless container launched by user A, volume owned by B #17991
-
I have a use case that I can't solve: UserA:
Expected:
I have already tried many things like 'keep-id' flags, same uid/gid in user image but I always get "nobody:nogroup". I probably missed some subtlety or parameter that would allow me to do this. Thanks all |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
podman unshare is going to map UserB UID to root within the user namespace That file in any other container not created with UserB UserNamespace is going to be treated as "nobody:nogroup". |
Beta Was this translation helpful? Give feedback.
podman unshare is going to map UserB UID to root within the user namespace
podman run --user=keep-id is going to map UserB UID to UserB UID within the user namespace.
That file in any other container not created with UserB UserNamespace is going to be treated as "nobody:nogroup".
Unless the UID:GID of the file on disk is mapped into the user namespace of the container that is looking at it.