查看错误信息
```shell
journalctl -u docker.service
Aug 13 05:39:10 ubuntu systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 13 05:39:10 ubuntu systemd[1]: Failed to start Docker Application Container Engine.
```
docker 服务器状态
>这里 restart docker 会卡住
```
sudo systemctl status docker
ubuntu@ubuntu:~$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (start) since Mon 2024-08-19 03:40:39 UTC; 20s ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 3400 (dockerd)
Tasks: 8
Memory: 22.8M
CPU: 373ms
CGroup: /system.slice/docker.service
└─3400 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Aug 19 03:40:39 ubuntu systemd[1]: Starting Docker Application Container Engine...
Aug 19 03:40:39 ubuntu dockerd[3400]: time="2024-08-19T03:40:39.652035506Z" level=info msg="Starting up"
Aug 19 03:40:39 ubuntu dockerd[3400]: time="2024-08-19T03:40:39.661294546Z" level=info msg="detected 127.0.0.53 nameserfer, assuming systemd-resol>
lines 1-15/15 (END)
```
现在解决方案
只能每次意外断电后卸载 docker,重新安装 docker...
为什么会产生这种问题呢,更好的解决一下。 不然太难受了 |
|