Search code examples
dockerunixrhel

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


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.


Solution

  • 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: