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 安装之后,通过命令查看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 服务正常运行了。
posted on 2017-04-28 15:11 jessezeng 阅读(4636) 评论(0) 编辑 收藏 举报