RHEL 上的 Docker CE - 需要:container-selinux >= 2.9 [英] Docker CE on RHEL - Requires: container-selinux >= 2.9

查看:28
本文介绍了RHEL 上的 Docker CE - 需要:container-selinux >= 2.9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用此 链接.这是我的 RHEL 版本:

I am trying to install Docker CE on RHEL using this link. This is my RHEL version:

Red Hat Enterprise Linux Server release 7.3 (Maipo)

当我执行此操作时:

sudo yum -y install docker-ce

我收到此错误:

Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2.9
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我尝试使用 --skip-brokenrpm -Va --nofiles --nodigest 但再次得到相同的错误.请告诉我如何解决此问题并在 RHEL 7.3 中安装 Docker CE.

I tried using --skip-broken and rpm -Va --nofiles --nodigest but again getting the same error. Please let me know how to resolve this issue and install Docker CE in RHEL 7.3.

推荐答案

container-selinux 包可从 rhel-7-server-extras-rpms 频道获得.您可以使用以下方法启用它:

The container-selinux package is available from the rhel-7-server-extras-rpms channel. You can enable it using:

subscription-manager repos --enable=rhel-7-server-extras-rpms

软件包的源代码也已导出到 git.centos.org,因此您可以使用 mock 自己重建它:

Sources for the package have been exported to git.centos.org, too, so you could rebuild it yourself using mock:

(这不是编程问题,因此您应该使用其他网站之一.)

(This is not a programming question, so you should use one of the other sites.)

这篇关于RHEL 上的 Docker CE - 需要:container-selinux >= 2.9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆