参考csdn https://blog.csdn.net/XAYNYKDR/article/details/84655080
错误信息
第一种:backing file system错误
Aug 05 01:52:12 b64cfa26c27f systemd[1]: Starting Docker Application Container Engine... Aug 05 01:52:12 b64cfa26c27f dockerd-current[303]: time="2021-08-05T01:52:12.403263100Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found" Aug 05 01:52:12 b64cfa26c27f dockerd-current[303]: time="2021-08-05T01:52:12.403603800Z" level=info msg="libcontainerd: new containerd process, pid: 311" Aug 05 01:52:13 b64cfa26c27f dockerd-current[303]: time="2021-08-05T01:52:13.405702500Z" level=error msg="'overlay2' is not supported over overlayfs" Aug 05 01:52:13 b64cfa26c27f dockerd-current[303]: Error starting daemon: error initializing graphdriver: backing file system is unsupported for this graph driver Aug 05 01:52:13 b64cfa26c27f systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE Aug 05 01:52:13 b64cfa26c27f systemd[1]: Failed to start Docker Application Container Engine. Aug 05 01:52:13 b64cfa26c27f systemd[1]: Unit docker.service entered failed state. Aug 05 01:52:13 b64cfa26c27f systemd[1]: docker.service failed.
这种情况修改 /etc/sysconfig/docker-storage文件
把DOCKER_STORAGE_OPTIONS改为"–storage-driver devicemapper “,
保存然后重启
第二种:iptables问题
Aug 05 01:59:23 b64cfa26c27f dockerd-current[359]: time="2021-08-05T01:59:23.311923100Z" level=warning msg="Your kernel does not support cgroup blkio weight_device" Aug 05 01:59:23 b64cfa26c27f dockerd-current[359]: time="2021-08-05T01:59:23.312705600Z" level=info msg="Loading containers: start." Aug 05 01:59:23 b64cfa26c27f dockerd-current[359]: time="2021-08-05T01:59:23.316255500Z" level=warning msg="Running modprobe nf_nat failed with message: ``, error: exit status 1" Aug 05 01:59:23 b64cfa26c27f dockerd-current[359]: time="2021-08-05T01:59:23.316834600Z" level=warning msg="Running modprobe xt_conntrack failed with message: ``, error: exit status 1" Aug 05 01:59:23 b64cfa26c27f dockerd-current[359]: time="2021-08-05T01:59:23.319674500Z" level=info msg="Firewalld running: false" Aug 05 01:59:23 b64cfa26c27f dockerd-current[359]: Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain: Iptables not found Aug 05 01:59:23 b64cfa26c27f systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE Aug 05 01:59:23 b64cfa26c27f systemd[1]: Failed to start Docker Application Container Engine. Aug 05 01:59:23 b64cfa26c27f systemd[1]: Unit docker.service entered failed state. Aug 05 01:59:23 b64cfa26c27f systemd[1]: docker.service failed.
安装iptables后启动
yum install -y iptables-services iptables-devel.x86_64 iptables.x86_64
systemctl start iptables