错误:docker-engine-selinux 与 2:container-selinux 冲突


  1. 仙人 7.在安装 Docker 期间,它说错误:

~ wget -qO- https://get.docker.com/| sh

+ sh -c 'sleep 3; yum -y -q install docker-engine'
Error: docker-engine-selinux conflicts with 2:container-selinux-1.10.3-59.el7.centos.x86_64
 You could try using --skip-broken to work around the problem
** Found 13 pre-existing rpmdb problem(s), 'yum check' output follows:
audit-libs-2.6.5-3.el7.x86_64 is a duplicate with audit-libs-2.4.1-5.el7.x86_64
7:device-mapper-1.02.135-1.el7_3.1.x86_64 is a duplicate with 7:device-mapper-1.02.93-3.el7_1.1.x86_64
7:device-mapper-libs-1.02.135-1.el7_3.1.x86_64 is a duplicate with 7:device-mapper-libs-1.02.93-3.el7_1.1.x86_64
kmod-20-9.el7.x86_64 is a duplicate with kmod-14-10.el7.x86_64
libselinux-2.5-6.el7.x86_64 has installed conflicts systemd < ('0', '219', '20'): systemd-208-20.el7_1.5.x86_64
libselinux-2.5-6.el7.x86_64 is a duplicate with libselinux-2.2.2-6.el7.x86_64
libselinux-utils-2.5-6.el7.x86_64 is a duplicate with libselinux-utils-2.2.2-6.el7.x86_64
libsemanage-2.5-4.el7.x86_64 is a duplicate with libsemanage-2.1.10-16.el7.x86_64
libsepol-2.5-6.el7.x86_64 is a duplicate with libsepol-2.1.9-3.el7.x86_64
policycoreutils-2.5-9.el7.x86_64 is a duplicate with policycoreutils-2.2.5-15.el7.x86_64
systemd-219-30.el7_3.6.x86_64 has installed conflicts initscripts < ('0', '9.49.28', '1'): initscripts-9.49.24-1.el7.x86_64
systemd-219-30.el7_3.6.x86_64 is a duplicate with systemd-208-20.el7_1.5.x86_64
systemd-libs-219-30.el7_3.6.x86_64 is a duplicate with systemd-libs-208-20.el7_1.5.x86_64

如何解决这些问题?

  1. 当我使用"yum update"时,我收到错误:

    libselinux 与 systemd 冲突

我遇到了同样的问题,并设法解决了它。我做了什么:

寻找以前的 CentOs 原生 docker 安装残余并删除它:

[root@here ~]# rpm -aq | grep docker
docker-common-1.10.3-59.el7.centos.x86_64
[root@here ~]# yum remove docker*

但这还不够

查找该container-selinux并将其删除:

[root@here ~]# rpm -qa | grep container-selinux
container-selinux-1.10.3-59.el7.centos.x86_64

首先确保它没有被其他任何东西使用(我有一个疑问,我选择安全游戏)

[root@here ~]# rpm -q --whatrequires container-selinux-1.10.3-59.el7.centos.x86_64
no package requires container-selinux-1.10.3-59.el7.centos.x86_64
[root@here ~]# yum remove container-selinux

然后我就好了!

最新更新