docker起不来报错:Failed to start Docker Application Container Engine

[root@master01 ~]# systemctl daemon-reload
[root@master01 ~]# systemctl 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.
[root@master01 ~]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Mon 2022-02-21 18:34:44 CST; 2s ago
Docs: https://docs.docker.com
Process: 6716 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 6716 (code=exited, status=1/FAILURE)

Feb 21 18:34:41 master01 systemd[1]: docker.service failed.
Feb 21 18:34:44 master01 systemd[1]: docker.service holdoff time over, scheduling restart.
Feb 21 18:34:44 master01 systemd[1]: Stopped Docker Application Container Engine.
Feb 21 18:34:44 master01 systemd[1]: start request repeated too quickly for docker.service
Feb 21 18:34:44 master01 systemd[1]: Failed to start Docker Application Container Engine.
Feb 21 18:34:44 master01 systemd[1]: Unit docker.service entered failed state.
Feb 21 18:34:44 master01 systemd[1]: docker.service failed.
Feb 21 18:34:44 master01 systemd[1]: start request repeated too quickly for docker.service
Feb 21 18:34:44 master01 systemd[1]: Failed to start Docker Application Container Engine.
Feb 21 18:34:44 master01 systemd[1]: docker.service failed.

解决方法:
1.防火墙和selinux都关了
2.修改/etc/docker/daemon.json这个文件(就这样粘贴复制,别多逗号)
{
“registry-mirrors”: [“https://docker.mirrors.ustc.edu.cn”]
}
3.systemctl daemon-reload
4.systemctl restart docker
5.systemctl status docker
在这里插入图片描述

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐