Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce create_host_path #163

Merged
merged 1 commit into from
Apr 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion schema/compose-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@
"bind": {
"type": "object",
"properties": {
"propagation": {"type": "string"}
"propagation": {"type": "string"},
"create_host_path": {"type": "boolean"}
},
"additionalProperties": false,
"patternProperties": {"^x-": {}}
Expand Down
3 changes: 3 additions & 0 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,9 @@ expressed in the short form.
- `read_only`: flag to set the volume as read-only
- `bind`: configure additional bind options
- `propagation`: the propagation mode used for the bind
- `create_host_path`: create a directory at the source path on host if there is nothing present.
Do nothing if there is something present at the path. This is automatically implied by short syntax
for backward compatibility with docker-compose legacy.
- `volume`: configure additional volume options
- `nocopy`: flag to disable copying of data from a container when a volume is created
- `tmpfs`: configure additional tmpfs options
Expand Down