boot2docker / osx-installer

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

Cannot connect to the Docker daemon. #43

Closed jasonkuhrt closed 10 years ago

jasonkuhrt commented 10 years ago

Something seems wrong while going with the default flow:

~
⧑ bash
bash-3.2$ unset DYLD_LIBRARY_PATH ; unset LD_LIBRARY_PATH
bash-3.2$ mkdir -p ~/.boot2docker
bash-3.2$ if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/ ; fi
bash-3.2$ /usr/local/bin/boot2docker init 
2014/07/10 13:04:11 Virtual machine boot2docker-vm already exists
bash-3.2$ /usr/local/bin/boot2docker up && export DOCKER_HOST=tcp://$(/usr/local/bin/boot2docker ip 2>/dev/null):2375
2014/07/10 13:04:11 Waiting for VM to be started...

2014/07/10 13:04:12 Started.
2014/07/10 13:04:12 To connect the Docker client to the Docker daemon, please set:
2014/07/10 13:04:12     export DOCKER_HOST=tcp://192.168.59.103:2375
bash-3.2$ docker version
Client version: 1.1.1
Client API version: 1.13
Go version (client): go1.2.1
Git commit (client): bd609d2
2014/07/10 13:04:12 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
bash-3.2$ docker version
Client version: 1.1.1
Client API version: 1.13
Go version (client): go1.2.1
Git commit (client): bd609d2
2014/07/10 13:05:08 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
jingkaihe commented 10 years ago

+1 The same with me...

jasonkuhrt commented 10 years ago

Closing because I believe my problem here was probably just this too: https://github.com/boot2docker/boot2docker/issues/431

jingkaihe commented 10 years ago

Well, after boot2docker delete ; boot2docker download ; boot2docker up, mine works as well.

My bad. Sorry for bothering ;(

razic commented 9 years ago

does boot2docker delete delete my containers?

SvenDowideit commented 9 years ago

yes, it deletes the entire VM.