rancher: Rancher docker install scripts are not working anymore on RHEL 7.x

What kind of request is this (question/bug/enhancement/feature request): bug

Steps to reproduce (least amount of steps as possible):

try to install docker-ce on a RHEL7.x server using one of the Rancher docker install scripts from: https://github.com/rancher/install-docker

Result: the script is failing at yum makecache with:

+ sh -c 'yum makecache'
Loaded plugins: search-disabled-repos
https://download.docker.com/linux/centos/7Server/x86_64/stable/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Other details that may be helpful: Following the source of the issue I found that docker changed the URL base from https://download.docker.com/linux/centos/7Server to https://download.docker.com/linux/centos/7

This change is recent (in the last one week or two).

One possible workaround is to add --releasever 7 to the yum commands (by altering the pkg_manager variable in the docker install script).

Environment information

  • Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): N/A
  • Installation option (single install/HA): N/A

Cluster information

  • Cluster type (Hosted/Infrastructure Provider/Custom/Imported): N/A
  • Machine type (cloud/VM/metal) and specifications (CPU/memory): VM
  • Kubernetes version (use kubectl version): N/A
(paste the output here)
  • Docker version (use docker version):
19.03

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (13 by maintainers)

Most upvoted comments

I was able to test with the following AMI using the latest 20.10.sh script: ami-0768d11005626f47b (no subscription) ami-04d7524f0f99dcb18 (community redhat, us-east-2 rhel 7.9) ami-015d9f9ba68b67486 (community redhat hvm, 8.2) all of which installed fine with the script.