Docker学习过程中遇到的问题及解决方法

1、重新安装Docker后,运行不起来

[root@zyt-test-14-53 ~]# docker info
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

问题原因:在安装dcos的过程中,配置docker启动使用overlayFS的方式

增加了启动文件 /etc/systemd/system/docker.service.d/override.conf

[Service]
Restart=always
StartLimitInterval=0
RestartSec=15
ExecStartPre=-/sbin/ip link del docker0
ExecStart=
ExecStart=/usr/bin/docker daemon --storage-driver=overlay -H fd://

解决方法:去掉  -H fd://
然后

[root@zyt-test-14-52 docker.service.d]# systemctl daemon-reload
[root@zyt-test-14-52 docker.service.d]# systemctl restart docker
[root@zyt-test-14-52 docker.service.d]# docker info
Containers: 0
Running: 0

正常

原文地址:https://www.cnblogs.com/wgying/p/6116367.html