Skip to content

Commit 08908d6

Browse files
committed
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]>
1 parent f0e14cd commit 08908d6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

config.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ The user for the process is a platform-specific structure that allows specific c
113113

114114
For Linux and Solaris based systems the user structure has the following fields:
115115

116-
* **`uid`** (int, required) specifies the user id.
117-
* **`gid`** (int, required) specifies the group id.
118-
* **`additionalGids`** (array of ints, optional) specifies additional group ids to be added to the process.
116+
* **`uid`** (int, required) specifies the user ID in the [container namespace][container-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.
119119

120120
_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)_
121121

@@ -668,6 +668,7 @@ Here is a full example `config.json` for reference.
668668
}
669669
```
670670

671+
[container-namespace]: glossary.md#container-namespace
672+
[go-environment]: https://golang.org/doc/install/source#environment
671673
[runtime-namespace]: glossary.md#runtime-namespace
672674
[uts-namespace]: http://man7.org/linux/man-pages/man7/namespaces.7.html
673-
[go-environment]: https://golang.org/doc/install/source#environment

0 commit comments

Comments
 (0)