docker 出现错误:no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS

docker 出现错误:Get http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

好好的docker用了好久了,今天突然发现查看镜像命令时候出错了。
报错信息:

http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

然后就查看了docker状态,但是 是正常的。。

[hadoop@huluwa ~]$ service docker status;
docker (pid  1615) is running...
[hadoop@huluwa ~]$ 

然后试着重启docker

[hadoop@huluwa ~]$ service docker restart;
Stopping docker: 

卡住一直不动。。。。

后来执行命令

sudo yum install device-mapper-event-libs

就正常了。。。
先这样吧。后面再具体找原因分析看看。

你可能感兴趣的:(Docker)