docker初次安装启动失败

使用命令systemctl restart/start docker时,会出现以下问题
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
使用journalctl -xe 输出以下记录
 
Oct 08 22:18:37 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
解决办法
修改/etc/docker/daemon.json
[root@localhost ~]# cat /etc/docker/daemon.json
{
"https://lfndq7om.mirror.aliyuncs.com"
}
 
改为
[root@localhost ~]# vim /etc/docker/daemon.json
[root@localhost ~]# cat /etc/docker/daemon.json
{
}
 
 
然后重启docker
 
有人建议删除/var/lib/docker目录(rm -rf /var/lib/docker),然后重启docker。
我的个人经验是这个方法不行,并且已有的image都丢掉了。
 

猜你喜欢

转载自www.cnblogs.com/shugui/p/9760988.html