Hey everyone! I'm new to both Docker and RHEL, and I'm trying to learn as much as I can. I was checking out the Docker Docs and noticed that the installation instructions are geared towards RHEL 8 and 9, but I'm running RHEL 10. I followed the install instructions, but I keep running into an error when trying to download metadata for the repository. The error I get is:
"Errors during downloading metadata for repository 'docker-ce-stable':
- Status code: 404 for https://download.docker.com/linux/rhel/10/x86_64/stable/repodata/repomd.xml (IP: 3.171.76.18) Error: Failed to download metadata for repo 'docker-ce-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried."
Can anyone help me understand what I might be doing wrong?
1 Answer
Have you checked which specific Docker documentation page you're following? It would help to see the exact commands you ran before encountering that error.
Sure! Here's the link to the doc: https://docs.docker.com/engine/install/rhel/. I ran these commands to add the repository:
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
Then, I tried to install Docker with this command:
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin.