docker错误FATA 获取http:///var/run/docker.sock/v1.18/images/search?term =节点:拨号unix /var/run/docker.sock:没有这样的文件或目录
Ubuntu 15.04 64位,docker 1.6.1,用户在docker组里。
操作系统启动后,每个docker命令执行都会导致此错误:
FATA[0000] Get http:///var/run/docker.sock/v1.18/images/search?term=node: dial unix /var/run/docker.sock: no such file or directory.
这个问题可以通过执行这个命令来解决:
service docker restart
但是重新启动后错误再次出现。
如何解决它?
设置docker启动在这里是centos6的命令
sudo / sbin / chkconfig –add docker
sudo / sbin / chkconfig –list docker
sudo / sbin / chkconfig docker
希望能帮助到你
链接到Ubuntu如何: https : //askubuntu.com/questions/58404/how-to-start-and-stop-a-service