日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

已解决:Job for docker.service failed because the control process exited with error code. See “systemctl

發布時間:2025/6/15 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 已解决: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/docker

4、測試結果

[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.sock

5、補充/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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。