Failing to install Docker on RHEL7.9

  docker, installation, redhat, yum

I am a BEGINNER following the video tutorial of my class, everyone made the same system. AWS EC2 RHEL7.9.

I spent the last 7 hrs trying to follow solutions on stack exchange but I can’t make any of them work for my problem. Your help is much appreciated.

Info and steps taken:

Becoming root

$ sudo su -

All necessary files seem to be here

[[email protected] ~]# ll
total 84
-rw-------. 1 root root  7407 Jan 28  2019 anaconda-ks.cfg
-rw-r--r--. 1 root root 40212 Sep 16  2019 container-selinux-2.107-3.el7.noarch.rpm
-rw-r--r--. 1 root root 15448 Oct 31 20:35 epel-release-latest-7.noarch.rpm
-rw-r--r--. 1 root root   254 Jun 24  2020 htcondor-stable-rhel7.repo
-rw-r--r--. 1 root root   153 Feb 23 10:33 install_docker_errors.txt
-rw-------. 1 root root  6704 Jan 28  2019 original-ks.cfg
-rw-r--r--. 1 root root  1752 Dec 12  2013 RPM-GPG-KEY-HTCondor

Checking again which rhel release:

[[email protected] ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)

Epel was previously installed – Nothing to do

[[email protected] ~]# yum localinstall epel-release-latest-7.noarch.rpm
Loaded plugins: amazon-id, search-disabled-repos
Examining epel-release-latest-7.noarch.rpm: epel-release-7-13.noarch
epel-release-latest-7.noarch.rpm: does not update installed package.
Nothing to do

Docker ce is here

[[email protected] ~]# ll /etc/yum.repos.d/docker-ce.repo
-rw-r--r--. 1 root root 1943 Feb 22 15:46 /etc/yum.repos.d/docker-ce.repo
[[email protected] ~]# yum install -y device-mapper-persistent-data lvm2
Loaded plugins: amazon-id, search-disabled-repos
Package device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64 already installed and latest version
Package 7:lvm2-2.02.187-6.el7_9.3.x86_64 already installed and latest version
Nothing to do
[[email protected] ~]# yum-config-manager --enable rhel-7-server-extras-rpms
Loaded plugins: amazon-id
[[email protected] ~]# yum makecache fast
Loaded plugins: amazon-id, search-disabled-repos
epel/x86_64/metalink                                                                 |  16 kB  00:00:00     
htcondor-stable                                                                      | 2.9 kB  00:00:00     
rhel-7-server-rhui-rh-common-rpms                                                    | 2.1 kB  00:00:00     
rhel-7-server-rhui-rpms                                                              | 2.0 kB  00:00:00     
rhui-client-config-server-7                                                          | 2.1 kB  00:00:00     
Metadata Cache Created

Install fails, packages not found

Why are none of the docker packages available?

[[email protected] ~]#yum install docker-ce docker-ce-cli containerd.io
Loaded plugins: amazon-id, search-disabled-repos
No package docker-ce available.
No package docker-ce-cli available.
No package containerd.io available.
Error: Nothing to do

Any ideas? Keep in mind I am a beginner, thanks for your constructive comments.

Source: Docker Questions

LEAVE A COMMENT