docker install container-selinux hang on centos
我有 centos 7(在 Xen 上),我正在尝试安装最新的稳定更新。
我做的第一件事是停止 docker 服务并从程序中删除旧版本
然后我尝试使用命令安装 docker-ce(我已经添加了 docker repo):
1 | sudo yum install docker-ce |
由于某种原因安装挂起。
命令输出:
Loaded plugins: fastestmirror, langpacks Loading mirror speeds from
cached hostfile * base: repo1.ash.innoscale.net * epel:
mirror.us.leaseweb.net * extras: mirror.rackspace.com * updates:
ftp.osuosl.org Resolving Dependencies There are unfinished
transactions remaining. You might consider running
yum-complete-transaction, or"yum-complete-transaction --cleanup-only"
and"yum history redo last", first to finish them. If those don't work
you'll have to try removing/installing packages by hand (maybe
package-cleanup can help).
--> Running transaction check
---> Package docker-ce.x86_64 0:17.09.0.ce-1.el7.centos will be installed
--> Processing Dependency: container-selinux >= 2.9 for package: docker-ce-17.09.0.ce-1.el7.centos.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.28-1.git85ce147.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved
================================================================================================================================================================================= Package Arch
Version Repository
Size
================================================================================================================================================================================= Installing: docker-ce x86_64
17.09.0.ce-1.el7.centos docker-ce-stable 21 M Installing for dependencies: container-selinux
noarch 2:2.28-1.git85ce147.el7
extras 29 kTransaction Summary
================================================================================================================================================================================= Install 1 Package (+1 Dependent package)Total size: 21 M Installed size: 76 M Is this ok [y/d/N]: y
Downloading packages: Running transaction check Running transaction
test Transaction test succeeded Running transaction Installing :
2:container-selinux-2.28-1.git85ce147.el7.noarch
安装在 container-selinux 上挂起。
停止(我已经等了 1 小时)yum 安装过程后,我收到错误:
warning: %post(container-selinux-2:2.28-1.git85ce147.el7.noarch)
scriptlet failed, signal 2 Non-fatal POSTIN scriptlet failure in rpm
package 2:container-selinux-2.28-1.git85ce147.el7.noarch
现在这是奇怪的事情......实际上在停止进程后容器-selinux已经安装(不确定是否成功)
所以在那之后我能够毫无问题地安装 docker-ce 但只有在中断第一次安装之后才挂起
知道如何在不挂起的情况下完成安装吗?
备注:
1) 已经尝试重启
2) 已经尝试使用以下命令安装:yum install --setopt=obsoletes=0 docker-ce
3) 已启用存储库附加功能
4) 服务器上没有磁盘空间或性能问题
5) 已经尝试过:yum-complete-transaction --cleanup-only
6) 已经有容器卷,它们的数据(在 /var/lib/docker/ 下)仍然存在于磁盘上
经过几个小时的尝试使安装工作没有挂起,我只有在 yum 更新服务器中的所有软件包后才成功
看起来包(在我的情况下)container-selinux-2.28-1.git85ce147.el7.noarch.rpm(这里)包含包的一些要求(这里):
1 2 3 4 5 6 | libselinux-utils policycoreutils >= 2.5-11 policycoreutils-python selinux-policy >= 3.13.1-39 selinux-policy-base >= 3.13.1-39 selinux-policy-targeted >= 3.13.1-39 |
我没有尝试只更新它们,但它可能会完成工作