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: Bump Hyper-V condition from root.path to root itself
Don't require users targetting Hyper-V to set an empty object ("root":
{}). This also avoids confusion about whether you can set
root.readonly without setting root.path (you can't).
Move the relative, absolute, and rootfs bits into a POSIX paragraph,
because they don't apply to Windows where the value MUST be a volume
GUID path (since 2283e63, Windows: Remove Sandbox, additional tweaks,
2017-05-23, opencontainers#849).
We don't need the "for Windows Server containers" condition on volume
GUID paths, because with this commit that condition is already applied
at the 'root' level and the Hyper-V case has already been handled
there.
Signed-off-by: W. Trevor King <wking@tremily.us>
Copy file name to clipboardExpand all lines: config.md
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -26,18 +26,22 @@ 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 Linux and Solaris, `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.
0 commit comments