docker成功安装但启动失败
Docker安装成功后,启动报错:Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.查看详情报错信息如下Failed to...
Docker安装成功后,启动报错:
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
查看详情报错信息如下
Failed to start Docker Application Container Engine.
经测试各种方法,确认以下有效:
修改docker文件,具体命令:vi /etc/sysconfig/docker,在--selinux-enabled后面添加=false。即可成功启动:
这时候可能下载镜像可能出现如下错误或者十分缓慢:
Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
应该是由于国内网络问题,我们可以需要配置加速器来解决,可以使用网易的镜像地址:http://hub-mirror.c.163.com。
解决方法:修改配置文件 vi /etc/docker/daemon.json
加入以下内容
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
重新加载docker的配置文件
systemctl daemon-reload
重启docker
systemctl restart docker
更多推荐
所有评论(0)