How to use idmap bind mounts? All experiments are failing #22535
Unanswered
johnson-earls
asked this question in
Q&A
Replies: 2 comments
-
I created an issue regarding the error
For me it worked when I passed the option |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you ever figure this one out? It's still the case for me in podman 5.4. For example, I run podman run -it --rm -v /mnt/my-stuff:/mnt/shared:idmap=uids=1000-1000-1 docker.io/ubuntu:rolling \
ls -l /mnt/shared but it shows everything under that mount as owned by root, not by user 1000. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am running podman version 4.9.4 as root:
I need to mount a host directory into the container (using
type=bind
), but need to remap the UIDs of the files from 0 to 1000.According to the documentation, the
idmap
option for--mount
withtype=bind
takes atrue
orfalse
option:So I tried this, but it failed:
Trying with the
idmap
format from the documented option fortype=volume
runs, but does not do the id mapping:How should this work?
Beta Was this translation helpful? Give feedback.
All reactions