我的kali如下显示
┌──(kali㉿pi)-[~]
└─$ sudo systemctl status docker
× docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2024-04-20 22:35:22 CST; 47s ago
TriggeredBy: × docker.socket
Docs: https://docs.docker.com
Process: 3541 ExecStart=/usr/sbin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock $DOCKER_OPTS (code=exited, status=1/FAILURE)
Main PID: 3541 (code=exited, status=1/FAILURE)
CPU: 185ms
4月 20 22:35:22 pi systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
4月 20 22:35:22 pi systemd[1]: docker.service: Start request repeated too quickly.
4月 20 22:35:22 pi systemd[1]: docker.service: Failed with result 'exit-code'.
4月 20 22:35:22 pi systemd[1]: Failed to start docker.service - Docker Application Container Engine.
4月 20 22:35:59 pi systemd[1]: docker.service: Start request repeated too quickly.
4月 20 22:35:59 pi systemd[1]: docker.service: Failed with result 'exit-code'.
4月 20 22:35:59 pi systemd[1]: Failed to start docker.service - Docker Application Container Engine.
如上,可知docker运行失败,linux版本为kali,在树莓派上安装了docker.io,之前有一次断电经历导致docker运行失败,解决方法:
sudo systemctl reset-failed docker //我的docker上没有任何镜像,操作需谨慎
sudo systemctl start docker