已解决:Job for docker.service failed because the control process exited with error code. See “systemctl
生活随笔
收集整理的這篇文章主要介紹了
已解决:Job for docker.service failed because the control process exited with error code. See “systemctl
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、問題描述
Docker宿主機重啟后,再次執行systemctl start docker命令時報如下錯誤:
[root@k8s-node02 docker]# systemctl start docker Job for docker.service failed because start of the service was attempted too often. See "systemctl status docker.service" and "journalctl -xe" for details. To force a start use "systemctl reset-failed docker.service" followed by "systemctl start docker.service" again.2、問題分析
需要刪除/var/lib/docker下的文件。
3、解決方法
rm -rf /var/lib/docker4、測試結果
[root@k8s-node02 docker]# systemctl start docker [root@k8s-node02 docker]# systemctl status docker ● docker.service - Docker Application Container EngineLoaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)Active: active (running) since 一 2021-12-06 10:05:29 CST; 4s agoDocs: https://docs.docker.comMain PID: 5453 (dockerd)Tasks: 12Memory: 36.0MCGroup: /system.slice/docker.service└─5453 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock5、補充/var/lib/docker下存放了哪些docker信息?
/var/lib/docker/ ├── aufs # 存儲AUFS驅動。Storage area for AUFS driver │ ├── diff # 層的分支目錄。Branch directory of layer │ ├── layers # 層信息。Infomation about docker layer │ └── mnt # aufs的掛載點,容器的根目錄。Mount point of aufs,root of containers ├── containers # 存放日志文件。Container configurations (both LXC and Docker-specific) ├── graph # 圖片存儲。Storage for the images ├── init │ └── dockerinit-0.7.3 # Used as /sbin/init in containers ├── linkgraph.db # sqlite 數據庫存儲鏈接和姓名。sqlite database storing links and names. ├── lxc-start-unconfined -> /usr/bin/lxc-start # When starting a privileged container,this is used in lieu of lxc-start,to evade AppArmor confinement (whichmatches by exact path). ├── repositories-aufs # 倉庫信息。repository infomation └── volumes # 存儲不是特定綁定的“匿名”卷。Storage for "anonymous" volumes(those which are not bind-mounts)總結
以上是生活随笔為你收集整理的已解决:Job for docker.service failed because the control process exited with error code. See “systemctl的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 已解决:Error response f
- 下一篇: 已解决:CentOS 7安装Docker