You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce a new option "size" to configure the maximum size of the
user namespace configured by keep-id.
Closes: containers#24837
Signed-off-by: Giuseppe Scrivano <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/markdown/options/userns.container.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Podman allocates unique ranges of UIDs and GIDs from the `containers` subordinat
40
40
41
41
The option `--userns=keep-id` uses all the subuids and subgids of the user.
42
42
The option `--userns=nomap` uses all the subuids and subgids of the user except the user's own ID.
43
-
Using `--userns=auto` when starting new containers does not work as long as any containers exist that were started with `--userns=keep-id` or `--userns=nomap`.
43
+
Using `--userns=auto` when starting new containers does not work as long as any containers exist that were started with `--userns=nomap` or `--userns=keep-id` without limiting the user namespace size.
44
44
45
45
Valid `auto` options:
46
46
@@ -62,6 +62,7 @@ For details see **--uidmap**.
62
62
63
63
-*uid*=UID: override the UID inside the container that is used to map the current user to.
64
64
-*gid*=GID: override the GID inside the container that is used to map the current user to.
65
+
-*size*=SIZE: override the size of the configured user namespace. It is useful to not saturate all the available IDs.
65
66
66
67
**nomap**: creates a user namespace where the current rootless user's UID:GID are not mapped into the container. This option is not allowed for containers created by the root user.
0 commit comments