Cannot install docker in a RHEL server Cannot install docker in a RHEL server docker docker

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 - $basearchbaseurl=http://mirror.centos.org/centos/7/extras/x86_64enabled=1gpgcheck=0

Then the installation command:

yum -y install slirp4netns fuse-overlayfs container-selinux

was successful.


Had this problem too when trying to install Docker. This worked to get fuse-overlayfs

sudo yum install fuse3-develwget http://mirror.centos.org/centos/7/extras/x86_64/Packages/fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpmsudo yum localinstall fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm

I got the package url from http://mirror.centos.org/centos/7/extras/x86_64/Packages/

The next thing missing for me is slirp4netns >= 0.4. I'm going to try the same trick. And yes, that did work and the docker install went through

 sudo yum install docker-ce docker-ce-cli containerd.io


Install the fuse3 libs package. That would provide the missing dependencies. And then try the fuse overlay package before proceeding to the docker install