Skip to content

Commit c18de44

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

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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)