mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #43339 from thaJeztah/api_improve_mountpoint_doc
api: document MountPoint fields (swagger, godoc and docs)
This commit is contained in:
commit
83b51522df
19 changed files with 905 additions and 24 deletions
|
@ -202,24 +202,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -502,13 +502,44 @@ type DefaultNetworkSettings struct {
|
||||||
// MountPoint represents a mount point configuration inside the container.
|
// MountPoint represents a mount point configuration inside the container.
|
||||||
// This is used for reporting the mountpoints in use by a container.
|
// This is used for reporting the mountpoints in use by a container.
|
||||||
type MountPoint struct {
|
type MountPoint struct {
|
||||||
|
// Type is the type of mount, see `Type<foo>` definitions in
|
||||||
|
// github.com/docker/docker/api/types/mount.Type
|
||||||
Type mount.Type `json:",omitempty"`
|
Type mount.Type `json:",omitempty"`
|
||||||
|
|
||||||
|
// Name is the name reference to the underlying data defined by `Source`
|
||||||
|
// e.g., the volume name.
|
||||||
Name string `json:",omitempty"`
|
Name string `json:",omitempty"`
|
||||||
|
|
||||||
|
// Source is the source location of the mount.
|
||||||
|
//
|
||||||
|
// For volumes, this contains the storage location of the volume (within
|
||||||
|
// `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
// the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
// field is empty.
|
||||||
Source string
|
Source string
|
||||||
|
|
||||||
|
// Destination is the path relative to the container root (`/`) where the
|
||||||
|
// Source is mounted inside the container.
|
||||||
Destination string
|
Destination string
|
||||||
|
|
||||||
|
// Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
Driver string `json:",omitempty"`
|
Driver string `json:",omitempty"`
|
||||||
|
|
||||||
|
// Mode is a comma separated list of options supplied by the user when
|
||||||
|
// creating the bind/volume mount.
|
||||||
|
//
|
||||||
|
// The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
Mode string
|
Mode string
|
||||||
|
|
||||||
|
// RW indicates whether the mount is mounted writable (read-write).
|
||||||
RW bool
|
RW bool
|
||||||
|
|
||||||
|
// Propagation describes how mounts are propagated from the host into the
|
||||||
|
// mount point, and vice-versa. Refer to the Linux kernel documentation
|
||||||
|
// for details:
|
||||||
|
// https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt
|
||||||
|
//
|
||||||
|
// This field is not used on Windows.
|
||||||
Propagation mount.Propagation
|
Propagation mount.Propagation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -170,24 +170,70 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -171,24 +171,70 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -174,24 +174,70 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -175,24 +175,70 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -176,24 +176,70 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -177,24 +177,70 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -178,24 +178,70 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -179,24 +179,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -184,24 +184,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -187,24 +187,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -175,24 +175,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -175,24 +175,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -175,24 +175,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -176,24 +176,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -202,24 +202,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -202,24 +202,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -202,24 +202,72 @@ definitions:
|
||||||
|
|
||||||
MountPoint:
|
MountPoint:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "A mount point inside a container"
|
description: |
|
||||||
|
MountPoint represents a mount point configuration inside the container.
|
||||||
|
This is used for reporting the mountpoints in use by a container.
|
||||||
properties:
|
properties:
|
||||||
Type:
|
Type:
|
||||||
|
description: |
|
||||||
|
The mount type:
|
||||||
|
|
||||||
|
- `bind` a mount of a file or directory from the host into the container.
|
||||||
|
- `volume` a docker volume with the given `Name`.
|
||||||
|
- `tmpfs` a `tmpfs`.
|
||||||
|
- `npipe` a named pipe from the host into the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "bind"
|
||||||
|
- "volume"
|
||||||
|
- "tmpfs"
|
||||||
|
- "npipe"
|
||||||
|
example: "volume"
|
||||||
Name:
|
Name:
|
||||||
|
description: |
|
||||||
|
Name is the name reference to the underlying data defined by `Source`
|
||||||
|
e.g., the volume name.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "myvolume"
|
||||||
Source:
|
Source:
|
||||||
|
description: |
|
||||||
|
Source location of the mount.
|
||||||
|
|
||||||
|
For volumes, this contains the storage location of the volume (within
|
||||||
|
`/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
|
||||||
|
the source (host) part of the bind-mount. For `tmpfs` mount points, this
|
||||||
|
field is empty.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/var/lib/docker/volumes/myvolume/_data"
|
||||||
Destination:
|
Destination:
|
||||||
|
description: |
|
||||||
|
Destination is the path relative to the container root (`/`) where
|
||||||
|
the `Source` is mounted inside the container.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "/usr/share/nginx/html/"
|
||||||
Driver:
|
Driver:
|
||||||
|
description: |
|
||||||
|
Driver is the volume driver used to create the volume (if it is a volume).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "local"
|
||||||
Mode:
|
Mode:
|
||||||
|
description: |
|
||||||
|
Mode is a comma separated list of options supplied by the user when
|
||||||
|
creating the bind/volume mount.
|
||||||
|
|
||||||
|
The default is platform-specific (`"z"` on Linux, empty on Windows).
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: "z"
|
||||||
RW:
|
RW:
|
||||||
|
description: |
|
||||||
|
Whether the mount is mounted writable (read-write).
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
|
example: true
|
||||||
Propagation:
|
Propagation:
|
||||||
|
description: |
|
||||||
|
Propagation describes how mounts are propagated from the host into the
|
||||||
|
mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
|
||||||
|
for details. This field is not used on Windows.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
|
||||||
DeviceMapping:
|
DeviceMapping:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue