Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only. MSYS_NO_PATHCONV=1 causes path problem #456

djsylvester opened this issue Mar 19, 2016 · 0 comments
Open MSYS_NO_PATHCONV=1 causes path problem #456

djsylvester opened this issue Mar 19, 2016 · 0 comments


Copy link

Installing Docker Toolbox 1.10.3 and running docker quickstart terminal was successful:

Creating machine...
Waiting for machine to be running, this may take a few minutes...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this vi
rtual machine, run: C:\Program Files\Docker Toolbox\docker-machine.exe env defau

                    ##         .
              ## ## ##        ==
           ## ## ## ## ##    ===
       /"""""""""""""""""\___/ ===
  ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
       \______ o           __/
         \    \         __/

docker is configured to use the default machine with IP
For help getting started, check out the docs at


As a usual quick check I ran:

bash$ docker run hello-world

and got back error:

Could not read CA certificate "\\c\\Users\\User\\.docker\\machine\\machines\\def
ault\\ca.pem": open \c\Users\User\.docker\machine\machines\default\ca.pem: The s
ystem cannot find the path specified.

So I ran:

eval $(docker-machine.exe env default)

and all worked from there. Here's the issue. I had to do this every time I started Docker. Not what I would expect. I took a look at the script and noticed a change from last time I tried using Docker Toolbox:

docker () {
  MSYS_NO_PATHCONV=1 docker.exe "$@"
export -f docker

I seem to remember that setting this environment variable to 1 can prevent automatic translation of a POSIX path to its Windows equivalent. On that foggy memory I commented it out:

  docker () {
    MSYS_NO_PATHCONV=1 docker.exe "$@"
  export -f docker

Restarted w/ quickstart terminal and the issue is gone. Docker starts, sets the environment, and
docker run xxx
works as expected.

This is a Windows 7 Ultimate x64 (fully patched) system with Git for Windows x64 installed so made sure it was unchecked in installer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
None yet

No branches or pull requests

1 participant