mirror of
https://github.com/containers/podman.git
synced 2025-10-09 23:15:39 +08:00
docs: clarify that --userns=keep-id runs container as host UID
Fixes: #24934 Signed-off-by: Daniel Lazaro <git@dlazaro.ca>
This commit is contained in:
@ -56,6 +56,8 @@ For details see **--uidmap**.
|
|||||||
|
|
||||||
**keep-id**: creates a user namespace where the current user's UID:GID are mapped to the same values in the container. For containers created by root, the current mapping is created into a new user namespace.
|
**keep-id**: creates a user namespace where the current user's UID:GID are mapped to the same values in the container. For containers created by root, the current mapping is created into a new user namespace.
|
||||||
|
|
||||||
|
In addition, the init process within the container will run under the current user's UID. This behavior overrides the image's `USER` instruction unless you explicitly set `--user`.
|
||||||
|
|
||||||
Valid `keep-id` options:
|
Valid `keep-id` options:
|
||||||
|
|
||||||
- *uid*=UID: override the UID inside the container that is used to map the current user to.
|
- *uid*=UID: override the UID inside the container that is used to map the current user to.
|
||||||
|
Reference in New Issue
Block a user