I am following the steps shown here.
It says to setup a repository by calling:
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Then install by running:
sudo yum install docker-ce docker-ce-cli containerd.io
When I do that I get the following error:
https://download.docker.com/linux/centos/7Server/x86_64/stable/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
When I go to that URL, it is a 404. But I am unsure on what the correct URL should be and what to do to get it to use the correct URL.
I am open to any advice on how to get this working.
Update:
Exploring a bit more I found that this URL is probably the one I need to use:
https://download.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml
But I don't know how to get it to use that.
Update 2:
Downloading the file at https://download.docker.com/linux/centos/docker-ce.repo (from the first command) showed that it was getting the 7Server value from a yum variable called $releasever.
This page indicates that $releasever is read from /etc/yum.conf in the setting distroverpkg. I added a line like this: distroverpkg=7.
But when I ran the install command again, 7Server was replaced by $releasever directly (no substitution happened). The 7 value I was looking for was not substituted in there.
Still stuck on how to get this to download and install docker.
Update 3:
I was able to add a file called releasever to /etc/yum/vars with the value of 7 in it. When I ran the install command again, it found the repository correctly!
But then it needed to load another URL that broke. It looked like that URL wanted 7Server instead of 7 as the releasever variable.
Looks like I am out of luck :(