Skip to content

Instantly share code, notes, and snippets.

@baydakovss
Last active June 17, 2023 17:31
Show Gist options
  • Save baydakovss/bf9374d4983e17fa79469d8c5b958771 to your computer and use it in GitHub Desktop.
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)
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