安装 docker-ce错误
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
Requires: libseccomp >= 2.3
错误:Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-stable)
Requires: libseccomp
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
Requires: systemd
错误:Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-stable)
Requires: systemd
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
Requires: libsystemd.so.0()(64bit)
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
Requires: libseccomp.so.2()(64bit)
错误:Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
错误:Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
You could try using --skip-broken to work around the problem
后面就找解决方案
1.尝试升级了内核,还是不行
2.安装低版本的docker
首先进入如图中的这个路径下 删除掉docker-ce.repo
然后安装执行如下命令
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
刷新缓存
yum clean all
yum makecache
安装docker
yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm
启动docker和查看版本
service docker start
docker version
参考链接
https://blog.csdn.net/makersy/article/details/105811271?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param