【问题标题】:Installing docker on centos7: docker-engine-selinux conflicts with docker-selinux-*centos7上安装docker:docker-engine-selinux与docker-selinux-*冲突
【发布时间】:2016-06-28 22:02:02
【问题描述】:

我尝试从 yum 和 Centos7 上的安装脚本安装 docker,但它们都给出了相同的错误:

Error: docker-engine-selinux conflicts with 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

【问题讨论】:

    标签: docker centos7


    【解决方案1】:
    yum list installed|grep docker
    yum remove docker-selinux.x86_64
    

    【讨论】:

    • 虽然代码通常不言自明,但最好在代码中添加一些解释。这会在审核队列中弹出,因为只有代码的答案往往如此。
    【解决方案2】:

    如果最佳答案不起作用,请改用yum remove docker-engine-selinux

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-09-19
      • 2020-06-26
      • 1970-01-01
      • 2017-10-07
      • 1970-01-01
      • 1970-01-01
      • 2021-10-28
      相关资源
      最近更新 更多