在centos7上安装docker:docker引擎selinux与docker selinux冲突-*
我尝试从yum和从在centos7上安装docker:docker引擎selinux与docker selinux冲突-*,docker,centos7,Docker,Centos7,我尝试从yum和从Centos7上的安装脚本安装docker,但两者都给出了相同的错误: 错误:docker引擎selinux与docker-selinux-1.10.3-44.el7.centos.x86_64冲突 我无法找出如何修复此问题并安装docker 完全错误回溯: [root@mynode]# wget -qO- https://get.docker.com/ | sh /usr/bin/docker: line 13: /usr/bin/docker-latest: No such
Centos7
上的安装脚本安装docker
,但两者都给出了相同的错误:
错误:docker引擎selinux与docker-selinux-1.10.3-44.el7.centos.x86_64冲突
我无法找出如何修复此问题并安装docker
完全错误回溯:
[root@mynode]# wget -qO- https://get.docker.com/ | sh
/usr/bin/docker: line 13: /usr/bin/docker-latest: No such file or directory
sh: line 149: [: -lt: unary operator expected
sh: line 153: [: -le: unary operator expected
Warning: the "docker" command appears to already exist on this system.
If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.
If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.
You may press Ctrl+C now to abort this script.
+ sleep 20
+ sh -c 'sleep 3; yum -y -q install docker-engine'
Error: docker-engine-selinux conflicts with docker-selinux-1.10.3-44.el7.centos.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
如果上面的答案不起作用,请尝试
yum-remove-docker-engine-selinux
,虽然代码本身就很好,但最好给代码添加一些解释。这会出现在审阅队列中,因为只有代码的答案往往会出现。
yum list installed|grep docker
yum remove docker-selinux.x86_64