I saw the following errors.
root@ubuntu:~# docker.io version
Client version: 0.9.1
Go version (client): go1.2.1
Git commit (client): 3600720
2014/06/15 18:54:12 dial unix /var/run/docker.sock: no such file or directory
root@ubuntu:~# tail -1 /etc/lsb-release
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
|
In my case, I was able to fix this by adding “-H unix:///var/run/docker.sock”
edit /etc/default/docker.io file.
root@ubuntu:~# grep -i ^docker_opts /etc/default/docker.io
DOCKER_OPTS="-dns 8.8.8.8 -dns 8.8.4.4 -H tcp://192.168.11.100:4243 -H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock"
|
restart docker.
root@ubuntu:~# service docker.io restart
docker.io stop/waiting
docker.io start/running, process 7173
|
root@ubuntu:~# docker.io version
Client version: 0.9.1
Go version (client): go1.2.1
Git commit (client): 3600720
Server version: 0.9.1
Git commit (server): 3600720
Go version (server): go1.2.1
Last stable version: 1.0.0, please update docker
root@ubuntu:~# ls -l /var/run/docker.sock
srw-rw---- 1 root docker 0 6月 15 18:57 /var/run/docker.sock
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.