Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker CE on RHEL - Requires: container-selinux >= 2.9

Tags:

docker

unix

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) 

When I execute this:

sudo yum -y install docker-ce 

I am getting this error:

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 

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.

like image 423
user182944 Avatar asked Jul 24 '17 04:07

user182944


People also ask

Is Docker CE supported on RHEL?

Unlike CentOS, you can not install Docker CE on RHEL 7/8 using the official installation script because it isn't allowed. You'll get the following error when you try that: RHEL is only allowed to use Docker EE.

What is container SELinux?

SELinux is an open source project released in 2000 and integrated into the Linux kernel in 2003. According to Red Hat's explainer, "SELinux is a security architecture for Linux systems that allows administrators to have more control over who can access the system.


1 Answers

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 

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

  • https://git.centos.org/summary/rpms!container-selinux.git

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

like image 154
Florian Weimer Avatar answered Sep 22 '22 03:09

Florian Weimer