####docker启动失败
[root@zbomc2 zcbusApi]# systemctl start docker.service
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
[root@zbomc2 zcbusApi]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sun 2021-08-22 11:12:11 CST; 2s ago
Docs: https://docs.docker.com
Process: 733752 ExecStart=/usr/bin/dockerd --selinux-enabled=false --insecure-registry=172.17.104.186 --exec-opt native.cgroupdriver=systemd (code=exited, status=1/FAILURE)
Main PID: 733752 (code=exited, status=1/FAILURE)
Aug 22 11:12:11 zbomc2 systemd[1]: Failed to start Docker Application Container Engine.
Aug 22 11:12:11 zbomc2 systemd[1]: Unit docker.service entered failed state.
Aug 22 11:12:11 zbomc2 systemd[1]: docker.service failed.
Aug 22 11:12:11 zbomc2 systemd[1]: docker.service holdoff time over, scheduling restart.
Aug 22 11:12:11 zbomc2 systemd[1]: Stopped Docker Application Container Engine.
Aug 22 11:12:11 zbomc2 systemd[1]: start request repeated too quickly for docker.service
Aug 22 11:12:11 zbomc2 systemd[1]: Failed to start Docker Application Container Engine.
Aug 22 11:12:11 zbomc2 systemd[1]: Unit docker.service entered failed state.
Aug 22 11:12:11 zbomc2 systemd[1]: docker.service failed.
[root@zbomc2 zcbusApi]# cd /etc/docker/
[root@zbomc2 docker]# ls
certs.d daemon.json daemon.json_back daemon.json.bak daemon.json.rpmnew daemon.json.rpmsave key.json
[root@zbomc2 docker]# mv daemon.json daemon.conf
[root@zbomc2 docker]# systemctl start docker.service
[root@zbomc2 docker]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2021-08-22 11:14:46 CST; 5s ago
Docs: https://docs.docker.com
Main PID: 734723 (dockerd)
Tasks: 54
Memory: 176.8M
CGroup: /system.slice/docker.service
├─734723 /usr/bin/dockerd --selinux-enabled=false --insecure-registry=172.17.104.186 --exec-opt native.cgroupdriver=systemd
├─734732 containerd --config /var/run/docker/containerd/containerd.toml --log-level info
├─735233 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8181 -container-ip 192.168.192.2 -container-port 8181
└─735239 containerd-shim -namespace moby -workdir /data/docker/lib/containerd/daemon/io.containerd.runtime.v1.linux/moby/35fe1a2b5961f88d01eb6410b8d4bfc73...
Aug 22 11:14:45 zbomc2 dockerd[734723]: time="2021-08-22T11:14:45.521330130+08:00" level=info msg="Removing stale sandbox 1cc2ba8c227d81266c9658ea2a5261a00...8c834981)"
Aug 22 11:14:45 zbomc2 dockerd[734723]: time="2021-08-22T11:14:45.521374939+08:00" level=warning msg="Failed getting network for ep 93ac37b53ce9cc158e48bdfee539648c5...
Aug 22 11:14:45 zbomc2 dockerd[734723]: time="2021-08-22T11:14:45.521398718+08:00" level=error msg="Failed to delete sandbox 1cc2ba8c227d81266c9658ea2a5261a0001df9bb...
Aug 22 11:14:45 zbomc2 dockerd[734723]: time="2021-08-22T11:14:45.556521788+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address ...P address"
Aug 22 11:14:45 zbomc2 dockerd[734723]: time="2021-08-22T11:14:45.803650532+08:00" level=info msg="shim containerd-shim started" address="unix:///run/conta...pid=735239
Aug 22 11:14:46 zbomc2 dockerd[734723]: time="2021-08-22T11:14:46.341573424+08:00" level=info msg="Loading containers: done."
Aug 22 11:14:46 zbomc2 dockerd[734723]: time="2021-08-22T11:14:46.420950835+08:00" level=info msg="Docker daemon" commit=99e3ed8 graphdriver(s)=overlay2 ve...n=19.03.15
Aug 22 11:14:46 zbomc2 dockerd[734723]: time="2021-08-22T11:14:46.423062412+08:00" level=info msg="Daemon has completed initialization"
Aug 22 11:14:46 zbomc2 systemd[1]: Started Docker Application Container Engine.
Aug 22 11:14:46 zbomc2 dockerd[734723]: time="2021-08-22T11:14:46.464198190+08:00" level=info msg="API listen on /var/run/docker.sock"
Hint: Some lines were ellipsized, use -l to show in full.
- 注意:ZCBUS平台,容器运行中,重启防火墙,需要先停止DOCKER服务。
文档更新时间: 2021-08-21 18:20 作者:阿力