According to the documentation at Installing Docker and Docker-Compose :: Fedora Docs, docker-cli
should be a Fedora 40 package. Trying to install it though yields “Error: Unable to find a match: docker-cli”.
Is it that what you are looking for?
sudo dnf search docker-cli
Updating and loading repositories:
Fedora 40 - x86_64 - Updates 100% | 71.0 KiB/s | 52.0 KiB | 00m01s
Fedora 40 - x86_64 - Updates 100% | 3.3 MiB/s | 9.9 MiB | 00m03s
Repositories loaded.
Matched fields: name
golang-github-docker-cli-devel.noarch: The docker CLI
So, this does seem to be some build of docker-cli, but does not seem to be maintained by the same team that manages the rest of the docker packages on Fedora. If this is the correct package to be using, I would expect it to be listed on the documentation link posted earlier.
You may want to try podman-docker.
I’m aware of podman, but it looks like podman-docker emulates the docker CLI by executing against podman which is not what I’m trying to do. I’m trying to get just the docker client (CLI) as packaged via Fedora (as opposed to adding the Docker RPM repo).
I’m hoping that somebody from the moby-engine team could chime in and clarify if the documentation is incorrect or if there is a repository issue causing docker-cli to not be available via Fedora 40.
Sorry about that.
It looks like the documentation is incorrect.
in F40 it looks like it’s provided by moby-engine:
sudo dnf provides /usr/bin/docker --releasever=40
Updating and loading repositories:
Repositories loaded.
podman-docker-5:5.3.1-1.fc40.noarch : Emulate Docker CLI using podman
Repo : updates
Matched From :
Filename : /usr/bin/docker
moby-engine-24.0.5-4.fc40.x86_64 : The open-source application container engine
Repo : fedora
Matched From :
Filename : /usr/bin/docker
podman-docker-5:5.0.0-1.fc40.noarch : Emulate Docker CLI using podman
Repo : fedora
Matched From :
Filename : /usr/bin/docker
It was done in this commit, Commit - rpms/moby-engine - 8c217e23ac6fce73859022e3e6f8002d09e5324d - src.fedoraproject.org