Skip to content

Commit 0cf6599

Browse files
author
John Howard
committed
Mount correction
Signed-off-by: John Howard <[email protected]>
1 parent 2ec18c0 commit 0cf6599

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

config.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ For Solaris, the mount entry corresponds to the 'fs' resource in the [zonecfg(1M
5959

6060
* **`destination`** (string, REQUIRED) Destination of mount point: path inside container.
6161
This value MUST be an absolute path.
62+
* Posix: the path and child directories MUST exist, a runtime MUST NOT create directories automatically to a mount point.
6263
* Windows: one mount destination MUST NOT be nested within another mount (e.g., c:\\foo and c:\\foo\\bar).
6364
* Solaris: corresponds to "dir" of the fs resource in [zonecfg(1M)][zonecfg.1m].
6465
* **`type`** (string, OPTIONAL) The type of the filesystem to be mounted.
@@ -69,7 +70,7 @@ For Solaris, the mount entry corresponds to the 'fs' resource in the [zonecfg(1M
6970
* Windows: a local directory on the filesystem of the container host. UNC paths and mapped drives are not supported.
7071
* Solaris: corresponds to "special" of the fs resource in [zonecfg(1M)][zonecfg.1m].
7172
* **`options`** (array of strings, OPTIONAL) Mount options of the filesystem to be used.
72-
* Linux: supported options are listed in the [mount(8)][mount.8] man page. Note both [filesystem-independent][mount.8-filesystem-independent] and [filesystem-specific][mount.8-filesystem-specific] options are listed.
73+
* Linux: supported options are listed in the [mount(8)][mount.8] man page. Note both [filesystem-independent][mount.8-filesystem-independent] and [filesystem-specific][mount.8-filesystem-specific] options are listed. In the case of bind mounts, this would be the file on the host.
7374
* Solaris: corresponds to "options" of the fs resource in [zonecfg(1M)][zonecfg.1m].
7475

7576
### Example (Linux)

specs-go/config.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,11 @@ type Platform struct {
112112

113113
// Mount specifies a mount for a container.
114114
type Mount struct {
115-
// Destination is the path where the mount will be placed relative to the container's root. The path and child directories MUST exist, a runtime MUST NOT create directories automatically to a mount point.
115+
// Destination is the absolute path where the mount will be placed in the container.
116116
Destination string `json:"destination"`
117117
// Type specifies the mount kind.
118-
Type string `json:"type,omitempty"`
119-
// Source specifies the source path of the mount. In the case of bind mounts on
120-
// Linux based systems this would be the file on the host.
118+
Type string `json:"type,omitempty" platform:"linux,solaris"`
119+
// Source specifies the source path of the mount.
121120
Source string `json:"source,omitempty"`
122121
// Options are fstab style mount options.
123122
Options []string `json:"options,omitempty"`

0 commit comments

Comments
 (0)