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
+20-17Lines changed: 20 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,22 +65,37 @@ For all platform-specific configuration values, the scope defined below in the [
65
65
For Linux, the parameters are as documented in [mount(2)][mount.2] system call man page.
66
66
For Solaris, the mount entry corresponds to the 'fs' resource in the [zonecfg(1M)][zonecfg.1m] man page.
67
67
68
-
69
68
***`destination`** (string, REQUIRED) Destination of mount point: path inside container.
70
69
This value MUST be an absolute path.
71
70
* Windows: one mount destination MUST NOT be nested within another mount (e.g., c:\\foo and c:\\foo\\bar).
72
71
* Solaris: corresponds to "dir" of the fs resource in [zonecfg(1M)][zonecfg.1m].
73
-
***`type`** (string, OPTIONAL) The type of the filesystem to be mounted.
74
-
* Linux: filesystem types supported by the kernel as listed in */proc/filesystems* (e.g., "minix", "ext2", "ext3", "jfs", "xfs", "reiserfs", "msdos", "proc", "nfs", "iso9660").
75
-
* Windows: this field MUST NOT be supplied.
76
-
* Solaris: corresponds to "type" of the fs resource in [zonecfg(1M)][zonecfg.1m].
77
72
***`source`** (string, OPTIONAL) A device name, but can also be a directory name or a dummy.
78
73
* Windows: a local directory on the filesystem of the container host. UNC paths and mapped drives are not supported.
79
74
* Solaris: corresponds to "special" of the fs resource in [zonecfg(1M)][zonecfg.1m].
80
75
***`options`** (array of strings, OPTIONAL) Mount options of the filesystem to be used.
81
76
* 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.
82
77
* Solaris: corresponds to "options" of the fs resource in [zonecfg(1M)][zonecfg.1m].
83
78
79
+
### Example (Windows)
80
+
81
+
```json
82
+
"mounts": [
83
+
{
84
+
"destination": "C:\\folder-inside-container",
85
+
"source": "C:\\folder-on-host",
86
+
"options": []
87
+
}
88
+
]
89
+
```
90
+
91
+
### <aname="configLinuxAndSolarisMounts" />Linux and Solaris Mounts
92
+
93
+
For Linux and Solaris based systems the mounts structure has the following fields:
94
+
95
+
***`type`** (string, OPTIONAL) The type of the filesystem to be mounted.
96
+
* Linux: filesystem types supported by the kernel as listed in */proc/filesystems* (e.g., "minix", "ext2", "ext3", "jfs", "xfs", "reiserfs", "msdos", "proc", "nfs", "iso9660").
97
+
* Solaris: corresponds to "type" of the fs resource in [zonecfg(1M)][zonecfg.1m].
98
+
84
99
### Example (Linux)
85
100
86
101
```json
@@ -100,18 +115,6 @@ For all platform-specific configuration values, the scope defined below in the [
Copy file name to clipboardExpand all lines: specs-go/config.go
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -112,12 +112,11 @@ type Platform struct {
112
112
113
113
// Mount specifies a mount for a container.
114
114
typeMountstruct {
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.
116
116
Destinationstring`json:"destination"`
117
117
// Type specifies the mount kind.
118
-
Typestring`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.
0 commit comments