Skip to content

RHEL9: Can't install docker from repository - 404 error, cannot download repodata/repomd.xml #49169

Open
@mikliapko

Description

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

Image

Reproduce

Follow the installation process described in Docker official doc:
https://docs.docker.com/engine/install/rhel/#install-using-the-repository

  1. sudo dnf -y install dnf-plugins-core
  2. sudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    kind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.status/0-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions