4.1. Docker

Warning

Consider installing Podman instead!

Install Docker:

1wget -qO - https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
2echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
3sudo apt update
4sudo apt install -y docker-ce docker-compose

You may allow a non-root user to run Docker:

1sudo usermod -aG docker $USER

Enable the Docker service:

1sudo systemctl enable docker