Error install docker-ce: Requires container-selinux

This was an issue I was asked to look into.  Someone was trying to install docker, and they kept getting all type of dependency issues with different perl packages.

First issue was he was using old repos.  I connected him to the latest RHEL 7 repos, this then sorted those problem, however he then hit the below.

Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2.9

This is because to install this you need to use the rhel 7 extras rpms channels. So from the command type :

subscription-manager repos --enable=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

As soon it this has been done you then do the installs

yum install container-selinux
yum install docker-ce

Then you are all done, hope this helps.

I am always interested in feedback so please feel free to add any comments, or you can mail me  here.  If you would like to submit a quick tip  with full credit and links back to your site then also feel free to contact me.

Related Posts Plugin for WordPress, Blogger...

Ansible script to fix /tmp permissions

How charged is your Apple Pencil?