If you are like me running on MAC OSX and you get this error because you have not started the docker and exported the DOCKER_HOST.
$ docker info
2014/08/01 17:34:31 Get http:///var/run/docker.sock/v1.12/info: dial unix /var/run/docker.sock: no such file or directory
Do as following to fix it:
$boot2docker
You will receive something like the following :
2014/08/01 17:34:21 Started.
2014/08/01 17:34:21 To connect the Docker client to the Docker daemon, please set:
2014/08/01 17:34:21 export DOCKER_HOST=tcp://134.155.10.100:2375
$export DOCKER_HOST=tcp://134.155.10.100:2375
Check if you d not get the error again or DOCKER is working properly:
$ docker info
Containers: 0
Images: 0
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Dirs: 0
Execution Driver: native-0.2
Kernel Version: 3.15.3-tinycore64
Debug mode (server): true
Debug mode (client): false
Fds: 10
Goroutines: 10
EventsListeners: 0
Init Path: /usr/local/bin/docker
More good tips about docker:
https://gist.github.com/wsargent/7049221
No comments:
Post a Comment