Centos7.6 安装Docker19 缺少container-selinux
·
问题现象:
yum安装docker
yum install -y docker-ce-19.03.15 docker-ce-cli-19.03.15
Error: Package: 3:docker-ce-19.03.15-3.el7.x86_64 (docker-ce)
Requires: container-selinux >= 2:2.74
Error: Package: containerd.io-1.6.33-3.1.el7.x86_64 (docker-ce)
Requires: container-selinux >= 2:2.74
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
问题原因:
目前Centos停止服务,官网上好的镜像已经失效,阿里云镜像上关于centos 7.6的镜像也失效了,所幸Centos7,9 有 container-selinux
解决办法
yum install -y https://mirrors.aliyun.com/centos/7.9.2009/extras/x86_64/Packages/container-selinux-2.119.1-1.c57a6f9.el7.noarch.rpm、
[root@node3 yum.repos.d]# yum install -y https://mirrors.aliyun.com/centos/7.9.2009/extras/x86_64/Packages/container-selinux-2.119.1-1.c57a6f9.el7.noarch.rpm
Loaded plugins: fastestmirror
container-selinux-2.119.1-1.c57a6f9.el7.noarch.rpm | 40 kB 00:00:00
Examining /var/tmp/yum-root-JndeM8/container-selinux-2.119.1-1.c57a6f9.el7.noarch.rpm: 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch
Marking /var/tmp/yum-root-JndeM8/container-selinux-2.119.1-1.c57a6f9.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package container-selinux.noarch 2:2.119.1-1.c57a6f9.el7 will be installed
--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch
Loading mirror speeds from cached hostfile
--> Running transaction check
---> Package policycoreutils-python.x86_64 0:2.5-29.el7 will be installed
--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-29.el7.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-14 for package: policycoreutils-python-2.5-29.el7.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-29.el7.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-29.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-29.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-29.el7.x86_64
--> Processing Dependency: libcgroup for package: policycoreutils-python-2.5-29.el7.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-29.el7.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-29.el7.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-29.el7.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-29.el7.x86_64
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.8.4-4.el7 will be installed
---> Package checkpolicy.x86_64 0:2.5-8.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-20.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be installed
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================
Installing:
container-selinux noarch 2:2.119.1-1.c57a6f9.el7 /container-selinux-2.119.1-1.c57a6f9.el7.noarch 41 k
Installing for dependencies:
audit-libs-python x86_64 2.8.4-4.el7 local 76 k
checkpolicy x86_64 2.5-8.el7 local 295 k
libcgroup x86_64 0.41-20.el7 local 66 k
libsemanage-python x86_64 2.5-14.el7 local 113 k
policycoreutils-python x86_64 2.5-29.el7 local 456 k
python-IPy noarch 0.75-6.el7 local 32 k
setools-libs x86_64 3.3.8-4.el7 local 620 k
Transaction Summary
===============================================================================================================================
Install 1 Package (+7 Dependent packages)
Total size: 1.7 M
Total download size: 1.6 M
Installed size: 5.3 M
Downloading packages:
-------------------------------------------------------------------------------------------------------------------------------
Total 40 MB/s | 1.6 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : audit-libs-python-2.8.4-4.el7.x86_64 1/8
Installing : setools-libs-3.3.8-4.el7.x86_64 2/8
Installing : python-IPy-0.75-6.el7.noarch 3/8
Installing : libsemanage-python-2.5-14.el7.x86_64 4/8
Installing : checkpolicy-2.5-8.el7.x86_64 5/8
Installing : libcgroup-0.41-20.el7.x86_64 6/8
Installing : policycoreutils-python-2.5-29.el7.x86_64 7/8
Installing : 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch 8/8
Verifying : 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch 1/8
Verifying : libcgroup-0.41-20.el7.x86_64 2/8
Verifying : checkpolicy-2.5-8.el7.x86_64 3/8
Verifying : libsemanage-python-2.5-14.el7.x86_64 4/8
Verifying : policycoreutils-python-2.5-29.el7.x86_64 5/8
Verifying : python-IPy-0.75-6.el7.noarch 6/8
Verifying : setools-libs-3.3.8-4.el7.x86_64 7/8
Verifying : audit-libs-python-2.8.4-4.el7.x86_64 8/8
Installed:
container-selinux.noarch 2:2.119.1-1.c57a6f9.el7
Dependency Installed:
audit-libs-python.x86_64 0:2.8.4-4.el7 checkpolicy.x86_64 0:2.5-8.el7 libcgroup.x86_64 0:0.41-20.el7
libsemanage-python.x86_64 0:2.5-14.el7 policycoreutils-python.x86_64 0:2.5-29.el7 python-IPy.noarch 0:0.75-6.el7
setools-libs.x86_64 0:3.3.8-4.el7
Complete!
更多推荐

所有评论(0)