您的位置:首页 > 运维架构 > Docker

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?

2017-04-28 15:11 1316 查看
docker 安装之后,通过命令查看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时又会出现另一个错误:



查看服务状态时又出现:



服务无法正常停止或重启,可能就是系统环境出现了问题,google一下发现一篇文章的解决方案:

(http://stackoverflow.com/questions/27216473/docker-1-3-fails-to-start-on-rhel6-5)

You may have to enable the
public_ol6_latest
repo in order to get this package.

sudo yum-config-manager --enable public_ol6_latest


And then install the package:

sudo yum install device-mapper-event-libs


测试一下:



重启启动服务,查看一下服务状态:



docker 服务正常运行了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐