Error Installing Docker on Centos7

We are trying to install docker on Centos 7.9.2009(core) with Kernel version 3.10

I am following the steps mentioned in Install Docker Engine on CentOS | Docker Documentation

I am trying to install using the method Install from a package

Downloaded the following .rpm files inside a specific folder from the url Index of linux/centos/7/x86_64/stable/Packages/

containerd.io-1.4.9-3.1.el7.x86_64.rpm
docker-ce-20.10.8-3.el7.x86_64.rpm
docker-ce-cli-20.10.8-3.el7.x86_64.rpm
docker-ce-rootless-extras-20.10.8-3.el7.x86_64.rpm
docker-scan-plugin-0.8.0-3.el7.x86_64.rpm

I was able to successfully install containerd.io-1.4.9-3.1.el7.x86_64.rpm.

But when i am trying to install any of the remaining package i am getting the following error

yum install docker-ce-20.10.8-3.el7.x86_64.rpm

Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, rhnplugin, versionlock
This system is receiving updates from Spacewalk server.
Examining docker-ce-20.10.8-3.el7.x86_64.rpm: 3:docker-ce-20.10.8-3.el7.x86_64
Marking docker-ce-20.10.8-3.el7.x86_64.rpm to be installed
Resolving Dependencies
→ Running transaction check
—> Package docker-ce.x86_64 3:20.10.8-3.el7 will be installed
→ Processing Dependency: docker-ce-cli for package: 3:docker-ce-20.10.8-3.el7.x86_64
Loading mirror speeds from cached hostfile
→ Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.8-3.el7.x86_64
→ Finished Dependency Resolution
Error: Package: 3:docker-ce-20.10.8-3.el7.x86_64 (/docker-ce-20.10.8-3.el7.x86_64)
Requires: docker-ce-rootless-extras
Error: Package: 3:docker-ce-20.10.8-3.el7.x86_64 (/docker-ce-20.10.8-3.el7.x86_64)
Requires: docker-ce-cli
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

yum install docker-scan-plugin-0.8.0-3.el7.x86_64.rpm

Failed to set locale, defaulting to C

Loaded plugins: fastestmirror, rhnplugin, versionlock

This system is receiving updates from Spacewalk server.

Examining docker-scan-plugin-0.8.0-3.el7.x86_64.rpm: docker-scan-plugin-0.8.0-3.el7.x86_64

Marking docker-scan-plugin-0.8.0-3.el7.x86_64.rpm to be installed

Resolving Dependencies

→ Running transaction check

—> Package docker-scan-plugin.x86_64 0:0.8.0-3.el7 will be installed

→ Processing Dependency: docker-ce-cli for package: docker-scan-plugin-0.8.0-3.el7.x86_64

Loading mirror speeds from cached hostfile

→ Finished Dependency Resolution

Error: Package: docker-scan-plugin-0.8.0-3.el7.x86_64 (/docker-scan-plugin-0.8.0-3.el7.x86_64)

Requires: docker-ce-cli

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

yum install docker-ce-rootless-extras-20.10.8-3.el7.x86_64.rpm

Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, rhnplugin, versionlock
This system is receiving updates from Spacewalk server.
Examining docker-ce-rootless-extras-20.10.8-3.el7.x86_64.rpm: docker-ce-rootless-extras-20.10.8-3.el7.x86_64
Marking docker-ce-rootless-extras-20.10.8-3.el7.x86_64.rpm to be installed
Resolving Dependencies
→ Running transaction check
—> Package docker-ce-rootless-extras.x86_64 0:20.10.8-3.el7 will be installed
→ Processing Dependency: fuse-overlayfs >= 0.7 for package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64
Loading mirror speeds from cached hostfile
→ Processing Dependency: slirp4netns >= 0.4 for package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64
→ Processing Dependency: docker-ce for package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64
→ Finished Dependency Resolution
Error: Package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64 (/docker-ce-rootless-extras-20.10.8-3.el7.x86_64)
Requires: slirp4netns >= 0.4
Available: slirp4netns-0.3.0-1.el7.x86_64 (centos7_os)
slirp4netns = 0.3.0-1.el7
Error: Package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64 (/docker-ce-rootless-extras-20.10.8-3.el7.x86_64)
Requires: docker-ce
Error: Package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64 (/docker-ce-rootless-extras-20.10.8-3.el7.x86_64)
Requires: fuse-overlayfs >= 0.7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

yum install docker-ce-cli-20.10.8-3.el7.x86_64.rpm

Failed to set locale, defaulting to C

Loaded plugins: fastestmirror, rhnplugin, versionlock

This system is receiving updates from Spacewalk server.

Examining docker-ce-cli-20.10.8-3.el7.x86_64.rpm: 1:docker-ce-cli-20.10.8-3.el7.x86_64

Marking docker-ce-cli-20.10.8-3.el7.x86_64.rpm to be installed

Resolving Dependencies

→ Running transaction check

—> Package docker-ce-cli.x86_64 1:20.10.8-3.el7 will be installed

→ Processing Dependency: docker-scan-plugin(x86-64) for package: 1:docker-ce-cli-20.10.8-3.el7.x86_64

Loading mirror speeds from cached hostfile

→ Finished Dependency Resolution

Error: Package: 1:docker-ce-cli-20.10.8-3.el7.x86_64 (/docker-ce-cli-20.10.8-3.el7.x86_64)

Requires: docker-scan-plugin(x86-64)

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

Can any one help me in resolving this issue.

Resolved the following errors i got while installing docker-ce-rootless-extras-20.10.8-3.el7.x86_64.rpm

→ Processing Dependency: fuse-overlayfs >= 0.7 for package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64
Loading mirror speeds from cached hostfile
→ Processing Dependency: slirp4netns >= 0.4 for package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64

These errors were resolved by installing the following packages

slirp4netns-0.4.3-4.el7_8.x86_64.rpm

fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm

**Now i am getting this error while executing command yum install docker-ce-rootless-extras-20.10.8-3.el7.x86_64.rpm

Failed to set locale, defaulting to C

Loaded plugins: fastestmirror, rhnplugin, versionlock

This system is receiving updates from Spacewalk server.

Examining docker-ce-rootless-extras-20.10.8-3.el7.x86_64.rpm: docker-ce-rootless-extras-20.10.8-3.el7.x86_64

Marking docker-ce-rootless-extras-20.10.8-3.el7.x86_64.rpm to be installed

Resolving Dependencies

→ Running transaction check

—> Package docker-ce-rootless-extras.x86_64 0:20.10.8-3.el7 will be installed

→ Processing Dependency: docker-ce for package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64

Loading mirror speeds from cached hostfile

→ Finished Dependency Resolution

Error: Package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64 (/docker-ce-rootless-extras-20.10.8-3.el7.x86_64)

Requires: docker-ce

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

Try this . It worked for me:
rpm -i docker-ce-20.10.8-3.el7.x86_64.rpm docker-ce-rootless-extras-20.10.8-3.el7.x86_64.rpm docker-ce-cli-20.10.8-3.el7.x86_64.rpm docker-scan-plugin-0.8.0-3.el7.x86_64.rpm