Yet exist on the Docker host, Docker does not automatically create it for If you use -mount to bind-mount a file or directory that does not Yet exist on the Docker host, -v creates the endpoint for you. If you use -v or -volume to bind-mount a file or directory that does not Differences between -v and -mount behaviorīecause the -v and -volume flags have been a part of Docker for a long The examples below show both the -mount and -v syntax where possible, and The -mount flag does not support z or Z options for modifying.The bind-propagation option, if present, changes theīind propagation.The readonly option, if present, causes the bind mount to be mounted into.
Limited functionality compared to volumes. Bind mounts have been around since the early days of Docker.