Cannot Install Docker in a Rhel Server

Cannot install docker in a RHEL server

Building on top of @user3495504's answer, what we did to fix the problem was adding an entry on top of the file /etc/yum.repos.d/docker-ce.repo, with this content:

[centos-extras]
name=Centos extras - $basearch
baseurl=http://mirror.centos.org/centos/7/extras/x86_64
enabled=1
gpgcheck=1
gpgkey=http://centos.org/keys/RPM-GPG-KEY-CentOS-7

Then the installation command:

yum -y install slirp4netns fuse-overlayfs container-selinux

was successful.

[Edit]

  • enabled gpgcheck

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

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.)



Related Topics



Leave a reply



Submit