Docker启动异常
# 问题
在进行docker重启的时候 sudo systemctl restart docker
,提示错误
[root@bulk]# sudo systemctl restart docker
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
1
2
2
这是时候,执行 docker stats
显示
[root@bulk]# 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 三 2023-10-18 09:14:07 CST; 38s ago
Docs: https://docs.docker.com
Process: 20504 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 20504 (code=exited, status=1/FAILURE)
10月 18 09:14:05 bulk systemd[1]: Failed to start Docker Application Container Engine.
10月 18 09:14:05 bulk systemd[1]: Unit docker.service entered failed state.
10月 18 09:14:05 bulk systemd[1]: docker.service failed.
10月 18 09:14:07 bulk systemd[1]: docker.service holdoff time over, scheduling restart.
10月 18 09:14:07 bulk systemd[1]: Stopped Docker Application Container Engine.
10月 18 09:14:07 bulk systemd[1]: start request repeated too quickly for docker.service
10月 18 09:14:07 bulk systemd[1]: Failed to start Docker Application Container Engine.
10月 18 09:14:07 bulk systemd[1]: Unit docker.service entered failed state.
10月 18 09:14:07 bulk systemd[1]: docker.service failed.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 解决
我这个问题的出现,是因为我改动了 docker 的配置文件 /etc/docker/daemon.json
新追加了几个属性,然后忘记加逗号了,格式错误,因此才出现的上面的问题
上次更新: 2023/10/19, 16:18:37