A rootless Podman container needs to access a host directory. Due to user namespace mapping, file ownership appears different inside the container. Which flag can be added to the mount to adjust UID/GID mapping behavior if supported?
Trap 1: podman run -v /host/path:/container/path:ns
'ns' is not a volume mount flag.
Trap 2: podman run -v /host/path:/container/path:uid=root
uid=root is not a valid suffix option.
Trap 3: podman run -v /host/path:/container/path:map
'map' is not a valid volume suffix flag.
- A
podman run -v /host/path:/container/path:ns
Why wrong: 'ns' is not a volume mount flag.
- B
podman run -v /host/path:/container/path:uid=root
Why wrong: uid=root is not a valid suffix option.
- C
podman run -v /host/path:/container/path:U
The 'U' flag recursively changes ownership of the volume to match the user running the container.
- D
podman run -v /host/path:/container/path:map
Why wrong: 'map' is not a valid volume suffix flag.