I've noticed that Ubuntu 20.04 (Focal Fossa) comes with the latest docker engine ready to be installed.
On may/2020 if you do:
# apt update
# apt install -y docker.io
you get docker version 19.03.8
which, in turn, is the latest published (to the date) by the docker friends.
This is amazing! This installs both the latest engine and client from the ubuntu's standard package repos. Great!
But now... I want to have a client machine with only the docker client. I don't want the engine itself downloaded in this machine. Only the client part.
In the past
According to this https://docs.docker.com/engine/install/ubuntu/ until ubuntu 19.10 it seemed to exist docker-ce-cli
.
But in a Focal Fossa 20.04 this happens:
# apt-get update
[omitted]
# apt-get install docker-ce-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-ce-cli
Question
What package should I install in ubuntu 20.04 to have only the docker cli?
# apt install -y xxxxxxxxx?
Try this command
sudo apt-get install docker-ce-cli
This might do what you needAs specified in the comments :
To add repositories and package lists.
Then you can run :