Skip to content
Discussion options

You must be logged in to vote

Because you run podman as root using idmap mounts is an option. An idmap mount can map the uid/gids properly into the container user namespace without having to later the ids on the host.

$ sudo podman run --rm -v /tmp/test:/test quay.io/libpod/testimage:20241011 ls -l /test
-rw-r--r--    1 1000     1000             0 Apr  7 09:07 /test
$ sudo podman run --rm --userns auto  -v /tmp/test:/test quay.io/libpod/testimage:20241011 ls -l /test
-rw-r--r--    1 nobody   nobody           0 Apr  7 09:07 /test
$ sudo podman run --rm --userns auto  -v /tmp/test:/test:idmap quay.io/libpod/testimage:20241011 ls -l /test
-rw-r--r--    1 1000     1000             0 Apr  7 09:07 /test

search for idmap mo…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@io7m
Comment options

@io7m
Comment options

Answer selected by io7m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants