Skip to content

Commit

Permalink
config: Explicit container namespace for uid, gid, and additionalGids
Browse files Browse the repository at this point in the history
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 <wking@tremily.us>
  • Loading branch information
wking committed Jun 2, 2016
1 parent f0e14cd commit 08908d6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ The user for the process is a platform-specific structure that allows specific c

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

* **`uid`** (int, required) specifies the user id.
* **`gid`** (int, required) specifies the group id.
* **`additionalGids`** (array of ints, optional) specifies additional group ids to be added to the process.
* **`uid`** (int, required) specifies the user ID in the [container namespace][container-namespace].
* **`gid`** (int, required) specifies the group ID in the [container namespace][container-namespace].
* **`additionalGids`** (array of ints, optional) specifies additional group IDs (in the [container namespace][container-namespace]) to be added to the process.

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

Expand Down Expand Up @@ -668,6 +668,7 @@ Here is a full example `config.json` for reference.
}
```

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

0 comments on commit 08908d6

Please sign in to comment.