Skip to content

Commit af65d46

Browse files
Merge pull request #27160 from dnlzro/main
docs: clarify that `--userns=keep-id` runs container as host UID
2 parents 2edf4ae + 4652f5c commit af65d46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/source/markdown/options/userns.container.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ For details see **--uidmap**.
5656

5757
**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.
5858

59+
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`.
60+
5961
Valid `keep-id` options:
6062

6163
- *uid*=UID: override the UID inside the container that is used to map the current user to.

0 commit comments

Comments
 (0)