boot2docker / osx-installer

Docker installer for Mac OS X
Apache License 2.0
1.25k stars 258 forks source link

dial unix /var/run/docker.sock: no such file or directory #103

Closed alexbilbie closed 9 years ago

alexbilbie commented 9 years ago

I've just installed 1.5.0 on 10.10.3 and I'm getting the following error when I run boot2docker.app

To connect the Docker client to the Docker daemon, please set:
    unset DOCKER_CERT_PATH
    unset DOCKER_TLS_VERIFY
    export DOCKER_HOST=tcp://192.168.59.103:2375

bash-3.2$ $(/usr/local/bin/boot2docker shellinit)
bash: unset: `DOCKER_HOST=tcp://192.168.59.103:2375': not a valid identifier
bash-3.2$ docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): darwin/amd64
FATA[0000] Get http:///var/run/docker.sock/v1.17/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

How can I fix this?

I've tried re-installing with the installer and that didn't help.

alexbilbie commented 9 years ago

Ah I realised my mistake, I should be using boot2docker run on the command line instead of launching the .app