In this How-To we are going to install Docker on Ubuntu 20.04 (Focal). To be able to use Docker to its full extent, we also install docker-compose. The instructions can be used for Ubuntu 20.04 as well as for all other current Ubuntu installations, including Ubuntu Hirsute 21.04.

There are two ways to install the Docker Engine, one with a regular apt install and one with an install script made by docker.