Docker Community Forums

Share and learn in the Docker community.

Docker-CE install issue on RHEL 8.2

I’m installing docker-ce on some RHEL 8.2 VMs in Azure. I’m installing an elastic product and following their install instructions:

When using the command:

sudo yum config-manager --add-repo=

There is an issue in the .repo file that downloads. If you try to install you will get this error:

Errors during downloading metadata for repository ‘docker-ce-stable’: - Status code: 404 for https :// (IP: Error: Failed to download metadata for repo ‘docker-ce-stable’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

I confirmed that the 8.2 directory in that URL does not exist. In the .repo file that section of the URL is formed by the $releasever variable like so:

(https:// prefix removed since new users can only post 2 links)$releasever/debug-$basearch/test

When this variable resolves to 8.2, that path does not exist and the product wont install. I had to manually edit the .repo file and change every instance of that variable to a hard coded “8” since that directory does exist. The repositories need to be updated to include directories for newer versions.

ps. I know I’m using RHEL and this is technicaly for CentOS, but it should work regardless.