mirror of
https://github.com/docker/cli.git
synced 2026-08-24 10:05:37 -05:00
Add support for the `bind-create-src` option in bind mounts, which instructs the daemon to create the source mountpoint on the host if it doesn't exist. This allows to replace the legacy `-v /src/dir:/dst` with the `--mount`. Usage: --mount type=bind,src=/host/path,dst=/container/path,bind-create-src --mount type=bind,src=/host/path,dst=/container/path,bind-create-src=true Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>