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
config: Explicit container namespace for uid, gid, and additionalGids
In the degenerate case where the container does not create a user
namespace, the "container namespace" distinction is unimportant, but
the phrasing is still accurate (the container and runtime namespaces
are the same).
Signed-off-by: W. Trevor King <[email protected]>
Copy file name to clipboardExpand all lines: config.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,9 +112,10 @@ The user for the process is a platform-specific structure that allows specific c
112
112
113
113
For Linux-based systems the user structure has the following fields:
114
114
115
-
***`uid`** (int, required) specifies the user id.
116
-
***`gid`** (int, required) specifies the group id.
117
-
***`additionalGids`** (array of ints, optional) specifies additional group ids to be added to the process.
115
+
***`uid`** (int, required) specifies the user ID in the [container namespace][container-namespace].
116
+
For example, if a user has UID 1000 in their current namespace, and [starts][start] a container with a new [user namespace][namespaces][mapping][user-namespace-mappings] the [runtime-namespace][] UID 1000 to the [container-namespace][] UID 0, they should set `uid` to 0 to have the process execute as 0 in container namespace (which will be 1000 in the runtime namespace).
117
+
***`gid`** (int, required) specifies the group ID in the [container namespace][container-namespace].
118
+
***`additionalGids`** (array of ints, optional) specifies additional group IDs (in the [container namespace][container-namespace]) to be added to the process.
118
119
119
120
_Note: symbolic name for uid and gid, such as uname and gname respectively, are left to upper levels to derive (i.e. `/etc/passwd` parsing, NSS, etc)_
120
121
@@ -637,5 +638,10 @@ Here is a full example `config.json` for reference.
0 commit comments