I need help installing docker

I added the repo for docker-ce then went to install it and I get a conflict error message. When I go to remove moby-engine it says it is not installed. How do I install the official docker-ce package? Error message:

sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker docker-compose-plugin
Last metadata expiration check: 0:03:08 ago on Mon 19 Aug 2024 03:34:24 PM EDT.
Error:
Problem: conflicting requests

  • package docker-ce-cli-1:26.0.0-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.0.0-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:26.0.1-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.0.1-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:26.0.2-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.0.2-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:26.1.0-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.1.0-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:26.1.1-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.1.1-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:26.1.2-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.1.2-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:26.1.3-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.1.3-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:26.1.4-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.1.4-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:27.0.1-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.0.1-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:27.0.2-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.0.2-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:27.0.3-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.0.3-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:27.1.0-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.1.0-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:27.1.1-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.1.1-1.fc40.x86_64 from docker-ce-stable
  • package docker-ce-cli-1:27.1.2-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  • package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.1.2-1.fc40.x86_64 from docker-ce-stable

On redhat/fedora you can use podman as a replacement for docker.
Podman was written because of problem using docker on redhat/fedora.

Added docker

Didn’t work. Still same message.

Doesn’t Fordora recommend moby?

It isn’t installed.

Carefully follow the official Docker instruction:
Install Docker Engine on Fedora | Docker Docs

Or use this way:

sudo dnf --allowerasing install \
    docker-ce docker-buildx-plugin docker-compose-plugin

And it doesn’t for me.

sudo dnf --allowerasing install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker docker-compose-plugin
Last metadata expiration check: 0:28:52 ago on Tue 20 Aug 2024 10:16:25 AM EDT.
Error: 
 Problem: conflicting requests
  - package docker-ce-cli-1:26.0.0-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.0.0-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:26.0.1-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.0.1-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:26.0.2-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.0.2-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:26.1.0-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.1.0-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:26.1.1-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.1.1-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:26.1.2-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.1.2-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:26.1.3-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.1.3-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:26.1.4-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:26.1.4-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:27.0.1-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.0.1-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:27.0.2-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.0.2-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:27.0.3-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.0.3-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:27.1.0-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.1.0-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:27.1.1-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.1.1-1.fc40.x86_64 from docker-ce-stable
  - package docker-ce-cli-1:27.1.2-1.fc40.x86_64 from docker-ce-stable conflicts with docker provided by moby-engine-24.0.5-4.fc40.x86_64 from fedora
  - package moby-engine-24.0.5-4.fc40.x86_64 from fedora conflicts with docker-ce-cli provided by docker-ce-cli-1:27.1.2-1.fc40.x86_64 from docker-ce-stable
(try to add '--skip-broken' to skip uninstallable packages)

You are exceptional. It worked. Come on though, I followed the official Docker install instructions. What is wrong with Linux?

Why does everything have to go through Fedora. Is this distribution different from others?

No it wasn’t. I followed it line by line.

 sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Your opening post contains this line:

I have highlighted the cause of the problem with bold font.

Right which is what they said to do. I copy/pasted but you said it wasn’t the one used. So you are wrong.

Docker has a history of poor support for systemd based systems.

If you can use podman then I recommend that you do as its has first class support in Fedora.

What about moby?

I’m not a docker expert, but with my limited use of containers I could do everything with podman projects tools. Build a container, specialise a container, run a container.

Nice and thanks for your help. I installed the official docker package thanks to Vladislav and will let you know how it turns out.

1 Like