RHEL9: Can't install docker from repository - 404 error, cannot download repodata/repomd.xml #49169
Open
Description
opened on Dec 27, 2024
Description
Can't install docker-ce from repository on RHEL9 because of:
Errors during downloading metadata for repository 'docker-ce-stable':
Status code: 404 for https://download.docker.com/linux/rhel/9.4/x86_64/stable/repodata/repomd.xml (IP: 13.32.151.28)
Error: Failed to download metadata for repo 'docker-ce-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Reproduce
Follow the installation process described in Docker official doc:
https://docs.docker.com/engine/install/rhel/#install-using-the-repository
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io
Expected behavior
No response
docker version
N/A
docker info
N/A
Additional Info
To workaround the issue $releasever in /etc/yum.repos.d/docker-ce.repo
can be replaced with exact major version number:
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/rhel/9/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/rhel/gpg
Activity