<p>I have tried to install Docker CE in my system and it ends with some problem.</p>

<p>I did the below steps:</p>

<ol>
<li>sudo yum install -y yum-utils – No error</li>
<li>sudo yum-config-manager --add-repo
<a href="https://download.docker.com/linux/centos/docker-ce.repo" rel="nofollow noreferrer">https://download.docker.com/linux/centos/docker-ce.repo</a> - No error</li>
<li>sudo yum makecache fast – No error</li>
<li>sudo yum -y install docker-ce – Failed with error</li>
</ol>

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

<hr>

<p>yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf</p>

<hr>

<p>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</p>

<p>Can someone please help me in this?</p>

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

<pre><code>subscription-manager repos --enable=rhel-7-server-extras-rpms
</code></pre>

<p>But if you do not have any subscription for Enterprise Linux, you can use CentOS Extra repo as a workaround. Add the below content into <code>/etc/yum.repos.d/centos.repo</code></p>

<pre><code>[CentOS-extras]
name=CentOS-7-Extras
mirrorlist=http://mirrorlist.centos.org/?release=7&amp;arch=$basearch&amp;repo=extras&amp;infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
</code></pre>
