[centos 6.7]docker 不能连接问题
docker 安装好后运行命令:
docker images
提示错误如下:
Get http:///var/run/docker.sock/v1.19/images/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? #或下面提示 Post http:///var/run/docker.sock/v1.19/images/create?fromImage=ubuntu%3Alatest: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
解决问题如下:
service docker restart sudo /sbin/chkconfig --add docker sudo /sbin/chkconfig --list docker sudo /sbin/chkconfig docker on service docker restart
然后就可以尽情的玩耍了