New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start.sh MSYS_NO_PATHCONV=1 causes path problem #456

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

Comments

Projects
None yet
1 participant
@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 join this conversation on GitHub. Already have an account? Sign in to comment