DNF causing an issue with the docker repo?

Hello all,

I’m new to Rocky having come from Centos.

I’m trying to setup docker on rocky 9 and keep running into an issue with docker installation.

dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
created by dnf config-manager from download.docker(dotcom)/linux/centos/docker-ce/r 306 B/s | 382 B 00:01
Errors during downloading metadata for repository ‘download.docker(dotcom)_linux_centos_docker-ce_repo’:

  • Status code: 404 for//download.docker(dotcom)/linux/centos/docker-ce/repo/repodata/repomd.xml (IP: 18.65.244.85)
    Error: Failed to download metadata for repo ‘download.docker(dotcom)_linux_centos_docker-ce_repo’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Naturally your first question would be, well did you setup the repo? Of course, using the below which is found in both the rocky and docker installation documentation.

dnf config-manager --add-repo download.docker(dotcom)/linux/centos/docker-ce.repo

I’ve also tried running the above commands using yum - same results.

I’ve also confirmed that the repo is setup on rocky using dnf repolist, output below.

docker-ce-stable Docker CE Stable - x86_64
download.docker(dotcom)_linux_centos_docker-ce_repo created by dnf config-manager from download.docker(dotcom)/linux/centos/docker-ce/repo

So my assumption is that the files in the repo no longer exists on the server side… Which sounds a bit extreme to me. So then, anyone know of a repo for docker that works?

Hi :slight_smile:

It looks like you forgot the https:// part in your add command.

$ dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

Hi Marie :slight_smile: Thanks for the reply.

Oh that was just me trying to get around the no more than two links per post rule on this forum.

I first removed https:// hoping that would be enough, nope, so I copied my post into notepad++ and replaced .com for (dotcom) lol

okay. :slight_smile:
I just tested to install docker on my computer and it worked.

first i added the repo
$ sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

Then i made the install
$ sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

and then i enable and started the service
and it seems to work :slight_smile:

¯_(ツ)_/¯
Still no joy on my end.

I’m sshed into my rocky machine via powershell with elevated permissions and sued to root in the ssh session - I reeeeally don’t think that would make a difference but the rocky machine is on a kvm switch so I’ll give it a go directly in the terminal.

Yeah still no joy directly on the terminal as root.

No idea what’s going on here, think I’ll just used a supported OS.

I have Rocky installed on an -->OLD<-- laptop :smiley:
I have been abusing Deban based since 2018, so i had an old laptop i dont use for anything… so i can take my sweet time learning Rhel based systems without feeling pressure i have to make it work within a day.
I never use SSH on my own systems as i see it as an attack vector… KVM switch is always better when you have physical access so to speak.
as you get a 404… check so you can connect/ping download.docker.com
Edit
also try open the page Index of linux/centos/ in your web browser, so your IP isn’t blocked/banned by their firewall.

I just walked away from the computer to make some noodles and the exact same thought came to mind, network issue.

I previously pinged 8.8.8.8 without issue and pinging… yep download.docker.com is replying as well.

i did an edit… try open the page just to check your IP isn’t blocked… if you using a VPN some end up in their “unfriendly” list if someone have abused the VPN service.

I have my rocky install on a wee little HP elitedesk that I’m wanting to setup as a VM playground. I’ve got kvm/qemu going which is nice but setting up nextcloud on a vm in cli is a laborious and time consuming task. Hence why I wanted to give docker a try.

Ah… PIA strikes again, it’s configured directly on my router so I forget about it all the bloody time.

So turned off the VPN on the router.
Could access download.docker.com and navigate to the centos directory.

Turned the VPN back on the router.
Could access download.docker.com and navigate to the centos directory.

If you new to docker… have a look at Docker Portainer, it gives a good web UI where you can manage and keep an eye on your containers… also install and manage them from there.

I’m one of “those” :alien: that like GUI’s LOL :rofl:
Terminal is a good tool… But if i can use a gui, then i will go for that first… and Terminal second. :yum: :blush:

Edit can you manually open this link so you get the repo file
https://download.docker.com/linux/centos/docker-ce.repo
if you can open this one, but not with the add repo command… then its weird

I’m very new to docker, and kvm/qemu, I’ve just been out of the Linux game for a few years but when I was using it on the regular is was with Centos ina software business and everything was CLI and I learned Linux on RHEL CLI - so Rocky is a natural progression for me but so much as changed. EG, a few weeks I had no idea what dnf was lol.

I’m getting a but frustrated here - installing software has never been so much of a challenge before…

Absolutely, even with the VPN on. No idea what Rocky is thinking when Firefox on Rocky and Opera on Windows can access the FTP without issue.

:smiley: if you feel like that… then you can imagine what i feel coming from Debian based… zero experiences with any Rhel based distro what so ever… and trying to get Rocky work as workstation OS :smiley: :smiley: :laughing:

Is there a means to install and user docker on a GUI? Is that what Docker Portainer is?

I can’t believe a web browser is accomplishing what the CLI couldn’t - that’s just ridiculous, it’s just connecting to an FTP server and downloading and installing some files! How is that a problem??? I need to go for a walk lol.

Nope screw it, I’m not letting a machine beat me.

I’m nuking it from orbit, it’s the only way to be sure.

Get reinstalled Rocky.

Docker portainer is a docker container… lets see… what is the page…
Here it is: Install Portainer CE with Docker on Linux | Portainer Documentation

In debian i would say Synaptic Package manager… That can install docker the GUI way
In Rocky… i have no idea… hmm… i wonder if gnome software have docker… give me 2 minutes

Edit
nope, gnome software can not install docker
I have tried to find something like Synaptic package manager to Rocky, but what i did find was not possible to install of some reason i dont know why yet.

Well well well. Nuking it from orbit worked!
Docker is installing as we speak.
Whatever Linux :rofl:

Thanks for your patience Marie, that was a strange issue and now we’ll never know why but that doesn’t matter cos now I’m going to go the easier route of using docker rather than kvm/qemu.

1st rule… if the problem takes longer to solve then to reinstall, then dont… just nuke the system :laughing:
and the only exception to that rule are… for learning purposes :smiley:

I’m trying to solve my mysterious Rocky problem… so i kind of doing that while talking to you :slight_smile: