Last active
June 17, 2023 17:31
-
-
Save baydakovss/bf9374d4983e17fa79469d8c5b958771 to your computer and use it in GitHub Desktop.
Invalid mount path: mount path must be absolute error (gitbash and docker-machine)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --name registry -p 5000:5000 --mount "type=bind,source=$PWD,target=/var/lib/registry" registry | |
docker: Error response from daemon: invalid mount config for type "bind": invalid mount path: 'C:/Users/user/sources' mount path must be absolute | |
# right way | |
export MSYS_NO_PATHCONV=1 | |
# workaround - double // | |
source=//c//Users//user//sources//project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment