[root@node01 system]# systemctl daemon-reload [root@node01 system]# systemctl start containerd [root@node01 system]# systemctl start docker A dependency job for docker.service failed. See 'journalctl -xe' for details. [root@node01 system]# systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Active: inactive (dead) Docs: https://docs.docker.com
Oct 21 10:17:55 node01.dklwj.com systemd[1]: Dependency failed for Docker Application Container Engine. Oct 21 10:17:55 node01.dklwj.com systemd[1]: Job docker.service/start failed with result 'dependency'. [root@node01 system]# tail -f /var/log/messages Oct 21 10:17:50 node01 containerd: time="2020-10-21T10:17:50.627673143+08:00" level=info msg="Start event monitor" Oct 21 10:17:50 node01 containerd: time="2020-10-21T10:17:50.627694928+08:00" level=info msg="Start snapshots syncer" Oct 21 10:17:50 node01 containerd: time="2020-10-21T10:17:50.627709788+08:00" level=info msg="Start streaming server" Oct 21 10:17:55 node01 systemd: Starting Docker Socket for the API. Oct 21 10:17:55 node01 systemd: Failed to chown socket at step GROUP: No such process Oct 21 10:17:55 node01 systemd: docker.socket control process exited, code=exited status=216 Oct 21 10:17:55 node01 systemd: Failed to listen on Docker Socket for the API. Oct 21 10:17:55 node01 systemd: Dependency failed for Docker Application Container Engine. Oct 21 10:17:55 node01 systemd: Job docker.service/start failed with result 'dependency'. Oct 21 10:17:55 node01 systemd: Unit docker.socket entered failed state. # 启动失败原因是没有docker组所以导致启动失败,在查看docker.socket文件时下面有项写着SocketGroup=docker所以必须要创建一个docker组 [root@node01 system]# cat /usr/lib/systemd/system/docker.socket [Unit] Description=Docker Socket for the API PartOf=docker.service