centos8 安装docker启动失败

借鉴https://www.zqcnc.cn/post/71.html 

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

Nov 16 10:41:40 VM-0-7-centos systemd[1]: Dependency failed for Docker Application Container Engine.
Nov 16 10:41:40 VM-0-7-centos systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
Nov 16 10:44:38 VM-0-7-centos systemd[1]: Dependency failed for Docker Application Container Engine.
Nov 16 10:44:38 VM-0-7-centos systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
Nov 16 10:45:26 VM-0-7-centos systemd[1]: Dependency failed for Docker Application Container Engine.
Nov 16 10:45:26 VM-0-7-centos systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
[root@VM-0-7-centos:~]# systemctl restart docker

解决方法:

  yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm(相比centos7 多了的一个依赖)

       systemctl restart docker 

posted @ 2020-11-16 10:59  请别对我太好  阅读(2291)  评论(0编辑  收藏  举报