Skip to content
This repository has been archived by the owner. It is now read-only.

start.sh MSYS_NO_PATHCONV=1 causes path problem #456

Open
djsylvester opened this issue Mar 19, 2016 · 0 comments
Open

start.sh MSYS_NO_PATHCONV=1 causes path problem #456

djsylvester opened this issue Mar 19, 2016 · 0 comments

Comments

@djsylvester
Copy link

@djsylvester djsylvester commented Mar 19, 2016

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
lt



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

docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com

bash$

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 start.sh 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:

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

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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant