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
Copy file name to clipboardExpand all lines: config.md
+19-15Lines changed: 19 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,22 +26,26 @@ For all platform-specific configuration values, the scope defined below in the [
26
26
27
27
## <aname="configRoot" />Root
28
28
29
-
**`root`** (object, REQUIRED) specifies the container's root filesystem.
29
+
**`root`** (object, OPTIONAL) specifies the container's root filesystem.
30
+
On Windows, for Windows Server Containers, this field is REQUIRED.
31
+
For [Hyper-V Containers](config-windows.md#hyperv), this field MUST NOT be set.
30
32
31
-
***`path`** (string, OPTIONAL) Specifies the path to the root filesystem for the container.
32
-
The path is either an absolute path or a relative path to the bundle.
33
+
On all other platforms, this field is REQUIRED.
33
34
34
-
* On Windows, for Windows Server Containers, this field is REQUIRED and MUST be specified as a [volume GUID path][naming-a-volume].
35
-
For Hyper-V Containers, this field MUST be omitted.
36
-
* On all other platforms, this field is REQUIRED.
35
+
***`path`** (string, REQUIRED) Specifies the path to the root filesystem for the container.
36
+
37
+
* On Windows, `path` MUST be a [volume GUID path][naming-a-volume].
38
+
39
+
* On POSIX platforms, `path` is either an absolute path or a relative path to the bundle.
40
+
For example, with a bundle at `/to/bundle` and a root filesystem at `/to/bundle/rootfs`, the `path` value can be either `/to/bundle/rootfs` or `rootfs`.
37
41
The value SHOULD be the conventional `rootfs`.
38
-
* On Linux, for example, with a bundle at `/to/bundle` and a root filesystem at `/to/bundle/rootfs`, the `path` value can be either `/to/bundle/rootfs` or `rootfs`.
39
42
40
-
If defined, a directory MUST exist at the path declared by the field.
43
+
A directory MUST exist at the path declared by the field.
44
+
41
45
***`readonly`** (bool, OPTIONAL) If true then the root filesystem MUST be read-only inside the container, defaults to false.
42
46
* On Windows, this field MUST be omitted or false.
43
47
44
-
### Example (POSIX)
48
+
### Example (POSIX platforms)
45
49
46
50
```json
47
51
"root": {
@@ -91,9 +95,9 @@ For all platform-specific configuration values, the scope defined below in the [
91
95
]
92
96
```
93
97
94
-
### <aname="configLinuxAndSolarisMounts" />Linux and Solaris Mounts
For Linux and Solaris based systems the mounts structure has the following fields:
100
+
For POSIX platforms the `mounts` structure has the following fields:
97
101
98
102
***`type`** (string, OPTIONAL) The type of the filesystem to be mounted.
99
103
* Linux: filesystem types supported by the kernel as listed in */proc/filesystems* (e.g., "minix", "ext2", "ext3", "jfs", "xfs", "reiserfs", "msdos", "proc", "nfs", "iso9660").
@@ -192,9 +196,9 @@ For Linux-based systems the process structure supports the following process-spe
192
196
193
197
The user for the process is a platform-specific structure that allows specific control over which user the process runs as.
194
198
195
-
#### <aname="configLinuxAndSolarisUser" />Linux and Solaris User
199
+
#### <aname="configPOSIXUser" />POSIX-platform User
196
200
197
-
For Linux and Solaris based systems the user structure has the following fields:
201
+
For POSIX platforms the `user` structure has the following fields:
198
202
199
203
***`uid`** (int, REQUIRED) specifies the user ID in the [container namespace](glossary.md#container-namespace).
200
204
***`gid`** (int, REQUIRED) specifies the group ID in the [container namespace](glossary.md#container-namespace).
@@ -345,9 +349,9 @@ For Windows based systems the user structure has the following fields:
345
349
}
346
350
```
347
351
348
-
## <aname="configHooks" />Linux and Solaris Hooks
352
+
## <aname="configHooks" />POSIX-platform Hooks
349
353
350
-
For Linux- and Solaris-based systems, the configuration structure supports `hooks` for configuring custom actions related to the [lifecycle](runtime.md#lifecycle) of the container.
354
+
For POSIX platforms, the configuration structure supports `hooks` for configuring custom actions related to the [lifecycle](runtime.md#lifecycle) of the container.
351
355
352
356
***`hooks`** (object, OPTIONAL) MAY contain any of the following properties:
353
357
***`prestart`** (array of objects, OPTIONAL) is an array of [pre-start hooks](#prestart).
0 commit comments