[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

然后就可以尽情的玩耍了

 

posted @ 2016-05-10 11:45  财富自由  阅读(643)  评论(0编辑  收藏  举报