Skip to content

Commit a7a90d9

Browse files
author
Mrunal Patel
committed
Merge pull request #275 from wking/namespace-host-paths
config-linux: Specify host mount namespace for namespace paths
2 parents b8d67bb + 5dad125 commit a7a90d9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

config-linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following parameters can be specified to setup namespaces:
3434
* **`uts`** the container will be able to have its own hostname and domain name
3535
* **`user`** the container will be able to remap user and group IDs from the host to local users and groups within the container
3636

37-
* **`path`** *(string, optional)* - path to namespace file
37+
* **`path`** *(string, optional)* - path to namespace file in the [runtime mount namespace](glossary.md#runtime-namespace)
3838

3939
If a path is specified, that particular file is used to join that type of namespace.
4040
Also, when a path is specified, a runtime MUST assume that the setup for that particular namespace has already been done and error out if the config specifies anything else related to that namespace.

glossary.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ The [`config.json`](config.md) file in a [bundle](#bundle) which defines the int
1313
An environment for executing processes with configurable isolation and resource limitations.
1414
For example, namespaces, resource limits, and mounts are all part of the container environment.
1515

16+
## Container namespace
17+
18+
On Linux, a leaf in the [namespace][namespaces.7] hierarchy in which the [configured process](config.md#process-configuration) executes.
19+
1620
## JSON
1721

1822
All configuration [JSON][] MUST be encoded in [UTF-8][].
@@ -22,5 +26,11 @@ All configuration [JSON][] MUST be encoded in [UTF-8][].
2226
An implementation of this specification.
2327
It reads the [configuration files](#configuration) from a [bundle](#bundle), uses that information to create a [container](#container), launches a process inside the container, and performs other [lifecycle actions](runtime.md).
2428

29+
## Runtime namespace
30+
31+
On Linux, a leaf in the [namespace][namespaces.7] hierarchy from which the [runtime](#runtime) process is executed.
32+
New container namespaces will be created as children of the runtime namespaces.
33+
2534
[JSON]: http://json.org/
2635
[UTF-8]: http://www.unicode.org/versions/Unicode8.0.0/ch03.pdf
36+
[namespaces.7]: http://man7.org/linux/man-pages/man7/namespaces.7.html

0 commit comments

Comments
 (0)