mirror of
https://github.com/docker/docs.git
synced 2026-10-28 07:15:09 +03:00
compose: add volume subpath (#19778)
Imported from compose-spec. Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
@@ -1739,6 +1739,7 @@ services:
|
||||
target: /data
|
||||
volume:
|
||||
nocopy: true
|
||||
subpath: sub
|
||||
- type: bind
|
||||
source: /var/run/postgres/postgres.sock
|
||||
target: /var/run/postgres/postgres.sock
|
||||
@@ -1790,6 +1791,7 @@ expressed in the short form.
|
||||
- `selinux`: The SELinux re-labeling option `z` (shared) or `Z` (private)
|
||||
- `volume`: Configures additional volume options:
|
||||
- `nocopy`: Flag to disable copying of data from a container when a volume is created.
|
||||
- `subpath`: Path inside a volume to mount instead of the volume root.
|
||||
- `tmpfs`: Configures additional tmpfs options:
|
||||
- `size`: The size for the tmpfs mount in bytes (either numeric or as bytes unit).
|
||||
- `mode`: The file mode for the tmpfs mount as Unix permission bits as an octal number. Introduced in Docker Compose version [2.14.0](../release-notes.md#2260).
|
||||
|
||||
Reference in New Issue
Block a user