Skip to content

Commit 3234a03

Browse files
committed
introduce create_host_path
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent b7fb5b6 commit 3234a03

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

schema/compose-spec.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@
408408
"bind": {
409409
"type": "object",
410410
"properties": {
411-
"propagation": {"type": "string"}
411+
"propagation": {"type": "string"},
412+
"create_host_path": {"type": "boolean"}
412413
},
413414
"additionalProperties": false,
414415
"patternProperties": {"^x-": {}}

spec.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,9 @@ expressed in the short form.
18111811
- `read_only`: flag to set the volume as read-only
18121812
- `bind`: configure additional bind options
18131813
- `propagation`: the propagation mode used for the bind
1814+
- `create_host_path`: create a directory at the source path on host if there is nothing present.
1815+
Do nothing if there is something present at the path. This is automatically implied by short syntax
1816+
for backward compatibility with docker-compose legacy.
18141817
- `volume`: configure additional volume options
18151818
- `nocopy`: flag to disable copying of data from a container when a volume is created
18161819
- `tmpfs`: configure additional tmpfs options

0 commit comments

Comments
 (0)