Replies: 4 comments 9 replies
-
The error is coming from the |
Beta Was this translation helpful? Give feedback.
-
Oh ok. But podman seems to somehow rely on I know about the /proc//ns/user link but as you confirmed above, in this particular case, it was not permitted to read it. So I was sort of blind for that matter (I could user Finally, can you confirm or infim my understanding that in a rootless case settings like I find it somehow useful to understand what's going on underneath podman to actually understand how to fully use its options in a reasonable way. |
Beta Was this translation helpful? Give feedback.
-
Hello,
And in another shell
It seems the container runs in a usernamespace but root has more than one uid mapped to its uid in the parent (without any subuid entry). What am I missing ? |
Beta Was this translation helpful? Give feedback.
-
Oh, indeed, it reminds now I've read about this in your book. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hello,
using
podman-5.2.5
onFedora 41 x86_64
, when I run an ubi8 container with--userns=keep-id
option as root (for the sake of it I have no real need to do so), it prints the following error message:This happens whether or not
root
orcontainers
have subuids/subgidsThere is no error with
host
namespaceAs a more general question, my understanding was that for such cases as
--userns=nomap
orkeep-id
orauto
for rootless users, 2 nested usernamespaces were required/created (as shown bylsns -t user -T
) to get the correct mapping.This seems logical to me after some thought.
keep-id
with rootful though seems to create only one usernamespace (againg shown withlsns
), which seems logical at first too, but I don't understand how it can write the mapping0 0 0 4294967295
inside withoutroot
having any subuids in the parent (global) usernamespace, nor why permission to follow the/proc/$$/ns/user
symlink is denied (I can do that in other modes/usecases) ?Or maybe I'm wrong and it stays in the global usernamespace
Thanks for your help
--
Thomas HUMMEL
Beta Was this translation helpful? Give feedback.
All reactions