解決dockers無法啟動

2021-10-05 13:14:12 字數 3139 閱讀 4358

記錄一下 折騰了一天  一台伺服器跑**崩了 重啟後,dockers無法使用, 啟動docker 報 

job for docker.service failed because the control process exited with error code. see "systemctl status docker.service" and "journalctl -xe" for details

檢視相關問題

sudo vim /lib/systemd/system/docker.service

execstart=/usr/bin/dockerd -h fd:// 

看了其他幾台的配置,預設就是讀取該位置  

改為 execstart=/usr/bin/dockerd -h fd:// --containerd=/run/containerd/containerd.sock

後 sudo systemctl daemon-reload  sudo systemctl start docker

報如下問題 

loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)

active: activating (start) since 一 2020-04-27 18:58:19 cst; 307ms ago

docs:

main pid: 8479 (dockerd)

tasks: 45

memory: 37.6m

cpu: 439ms

cgroup: /system.slice/docker.service

├─8479 /usr/bin/dockerd -h unix:///var/run/docker.sock

├─8567 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8883 -container-ip 172.17.0.2 -container-port 8888

└─8582 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 6007 -container-ip 172.17.0.2 -container-port 6007

4月 27 18:58:19 k8s-**wf48-master dockerd[8479]: time="2020-04-27t18:58:19.786261312+08:00" level=info msg="clientconn switching balancer to \"pick_first\"" module=grpc

4月 27 18:58:19 k8s-**wf48-master dockerd[8479]: time="2020-04-27t18:58:19.786334663+08:00" level=info msg="pickfirstbalancer: handlesubconnstatechange: 0xc4201d41a0, connecting" module=grpc

4月 27 18:58:19 k8s-**wf48-master dockerd[8479]: time="2020-04-27t18:58:19.786461206+08:00" level=info msg="pickfirstbalancer: handlesubconnstatechange: 0xc4200d3a30, ready" module=grpc

4月 27 18:58:19 k8s-**wf48-master dockerd[8479]: time="2020-04-27t18:58:19.786539867+08:00" level=info msg="pickfirstbalancer: handlesubconnstatechange: 0xc4201d41a0, ready" module=grpc

4月 27 18:58:19 k8s-**wf48-master dockerd[8479]: time="2020-04-27t18:58:19.790487639+08:00" level=info msg="[graphdriver] using prior storage driver: overlay2"

4月 27 18:58:19 k8s-**wf48-master dockerd[8479]: time="2020-04-27t18:58:19.844732996+08:00" level=info msg="graph migration to content-addressability took 0.00 seconds"

4月 27 18:58:19 k8s-**wf48-master dockerd[8479]: time="2020-04-27t18:58:19.845157944+08:00" level=warning msg="your kernel does not support swap memory limit"

4月 27 18:58:19 k8s-**wf48-master dockerd[8479]: time="2020-04-27t18:58:19.845237839+08:00" level=warning msg="your kernel does not support cgroup rt period"

4月 27 18:58:19 k8s-**wf48-master dockerd[8479]: time="2020-04-27t18:58:19.845256923+08:00" level=warning msg="your kernel does not support cgroup rt runtime"

4月 27 18:58:19 k8s-**wf48-master dockerd[8479]: time="2020-04-27t18:58:19.846423265+08:00" level=info msg="loading containers: start."

嘗試了很多辦法

最後 還是改 execstart=/usr/bin/dockerd -h fd:// --containerd=/var/run/docker.sock 後 啟動後 

把8883 埠的容器幹 

再把 改為 execstart=/usr/bin/dockerd -h fd:// 

sudo systemctl daemon-reload  sudo systemctl start docker 重啟後 正常

安裝dockers後無法使用?

報錯如下 usr bin docker current cannot connect to the docker daemon at tcp localhost 2375.is the docker daemon running?see usr bin docker current run help...

rabbitMQ無法啟動解決

2018.09 在按照某些blog的步驟安裝rabbitmq之後,不能啟動rabbitmq,嘗試啟動就報如下錯誤 error unable to connect to node rabbit 588cab0040a2 nodedown rabbitmq minimum required erlang...

MySQL服務無法啟動解決

造成此情況的原因是mysqld initialize執行失敗,在data裡會找到錯誤資訊 2018 12 06t11 42 05.084257z 0 error my 000077 server d programdata mysql 8.0.13 bin mysqld.exe error whil...