docker無法正常啟動

2021-08-19 08:23:02 字數 4549 閱讀 1065

hint: some lines were ellipsized, use -l to show in full.於是在網上找各種類似錯誤,有說是需要把firewalld.service及selinux關閉。呃,這個的話是能夠導致docker啟動不了,可博主這塊兒不是因為這個原因導致。

博主第一時間能想到的只有重灌docker,可反覆刪除幾次後仍為解決問題。(期間以為會是kubernetes當時設定有關,於是將kubernetes的所有軟體也刪除,問題同樣是沒有解決)。

# rm -rf /var/lib/docker/

# 新增如下內容

# vim /etc/docker/daemon.json

[root@aly-hkc-pro-001 ~]# systemctl restart docker

[root@aly-hkc-pro-001 ~]# systemctl status docker

loaded: loaded (/usr/lib/systemd/system/docker.service

; disabled; vendor preset: disabled)

active: active (running) since mon 2017-07-03

10:26:19 cst; 15s ago

docs:

.com

main pid: 17167 (dockerd-current)

cgroup: /system.slice/docker.service

├─17167 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userlan...

└─17175 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim docker-containerd-shim --metrics-interval=0 --start-timeout 2m -...

jul 03

10:26:18 aly-hkc-pro-001 dockerd-current[17167]: time="2017-07-03t10:26:18.961963315+08:00" level=info msg="graph migration to content-addressability took 0.00 seconds"

jul 03

10:26:18 aly-hkc-pro-001 dockerd-current[17167]: time="2017-07-03t10:26:18.962211996+08:00" level=warning msg="mountpoint for pids not found"

jul 03

10:26:18 aly-hkc-pro-001 dockerd-current[17167]: time="2017-07-03t10:26:18.962703210+08:00" level=info msg="loading containers: start."

jul 03

10:26:19 aly-hkc-pro-001 dockerd-current[17167]: .........time="2017-07-03t10:26:19.230715822+08:00" level=info msg="firewalld running: false"

jul 03

10:26:19 aly-hkc-pro-001 dockerd-current[17167]: time="2017-07-03t10:26:19.379894482+08:00" level=info msg="default bridge (docker0) is assigned with an ip address 172.30...ip address"

jul 03

10:26:19 aly-hkc-pro-001 dockerd-current[17167]: time="2017-07-03t10:26:19.435937423+08:00" level=info msg="loading containers: done."

jul 03

10:26:19 aly-hkc-pro-001 dockerd-current[17167]: time="2017-07-03t10:26:19.436016788+08:00" level=info msg="daemon has completed initialization"

jul 03

.6jul 03

10:26:19 aly-hkc-pro-001 dockerd-current[17167]: time="2017-07-03t10:26:19.441788942+08:00" level=info msg="api listen on /var/run/docker.sock"

jul 03

hint: some lines were ellipsized, use -l to show in full.

博主感覺這個問題還能有其它的解決方式,後續會將docker儲存驅動詳細介紹一下。

希望博文能夠解決朋友們的問題~純屬個人理解,如有問題歡迎隨時指出。

docker啟動kafka

docker安裝,無法正常啟動

報錯資訊 job for docker.service failed because the control process exited with error code.see systemctl status docker.service and journalctl xe for detail...

X Window無法正常啟動

起因 在cmos開啟了雙顯示卡 想通過vgaswitch 來配置使用獨顯,關掉集顯 安裝了nvidia xconfig,執行,自動修改了xorg.conf 重啟電腦,無法進入x,停留在fedora圖示畫面 折騰 進入tty2,再次執行nvidia xconfig,xorg.conf.back被覆蓋 ...

docker無法啟動

目錄 systemctl daemon reload 重新載入systemd,掃瞄新的或者變動的單元 sudo systemctl start docker 啟動docker systemctl status docker.service 檢視服務狀態 容器加速 這樣做不能正常啟動,所以把檔案 et...