DebugFactor.com | Forum

Slirp4netns, container-selinux, fuse-overlayfs missing dependency error whie installing docker in RHEL 7.9

Hi,

I am trying to install docker in my RHEL 7.9 VM. There are dependencies errors.

yum -y install docker-ce
-> Finished Dependency Resolution
Error: Package: docker-ce-rootless-extras-20.10.12-3.el7.x86_64 (docker-ce-stable)
           Requires: slirp4netns >= 0.4
Error: Package: 3:docker-ce-20.10.12-3.el7.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2:2.74
Error: Package: containerd.io-1.4.12-3.1.el7.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2:2.74
Error: Package: docker-ce-rootless-extras-20.10.12-3.el7.x86_64 (docker-ce-stable)
           Requires: fuse-overlayfs >= 0.7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

To install slirp4netns, container-selinux and fuse-overlayfs, add this to your rhel repository.

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

Then try to install docker-ce again, the dependencies will be resolved automatically and installed.