You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the -v and --volume flags have been a part of Docker for a long time, their behavior cannot be changed. This means that there is one behavior that is different between -v and --mount.
If you use -v or --volume to bind-mount a file or directory that does not yet exist on the Docker host, -v creates the endpoint for you. It is always created as a directory.
If you use --mount to bind-mount a file or directory that does not yet exist on the Docker host, Docker does not automatically create it for you, but generates an error.
Generating an error would be way preferable to creating an empty directory for our bind mounts.
As I have realized this is going to require some changes to install.py where we're adjusting the .yml, I'm going to bump this to a later release to handle it there.
I think the part we really want in the documentation is here: Volumes: Long Syntax
My rough-and-dirty attempt at find-and-replace in my text editor is:
in install.py the calls to ReplaceBindMountLocation are what do this, which is found here. Changing from short form to long form will break this, so we'll have to adjust that when we do it.
See Differences between -v and --mount behavior:
Generating an error would be way preferable to creating an empty directory for our bind mounts.
As far as how to do this:
The text was updated successfully, but these errors were encountered: