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 (Mai
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
:
(This is not a programming question, so you should use one of the other sites.)
On CentOS7 I had to follow the third install method, get-docker.sh https://docs.docker.com/install/linux/docker-ce/centos/#install-using-the-convenience-script
Try:
yum install http://vault.centos.org/centos/7.3.1611/extras/x86_64/Packages/container-selinux-2.9-4.el7.noarch.rpm
It worked for me.
[SOLVED] Simple one command to fix this issue.
yum install http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-3.el7.noarch.rpm
this link helped me to solve this issue
Here is the solution: For centos: try
sudo yum install --setopt=obsoletes=0 \
> docker-ce-17.03.2.ce-1.el7.centos.x86_64 \
> docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch
For Rhel:
sudo yum install --setopt=obsoletes=0 docker-ce-17.03.3.ce-1.el7.x86_64.rpm docker-ce-selinux-17.03.3.ce-1.el7.noarch.rpm
Just install selinux latest version to fix it:
sudo yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-3.el7.noarch.rpm
More versions at http://mirror.centos.org/centos/7/extras/x86_64/Packages/
Older versions of 2.9: http://ftp.riken.jp/Linux/cern/centos/7/extras/x86_64/Packages/