Today we’re going to learn how we can install Docker and Docker Compose on Debian very quickly.

First, we add the Debian repository keys.
Now we install the latest version of Docker
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Run Docker
sudo docker run hello-world
We can configure so that we don’t need to use the sudo command to launch Docker (https://docs.docker.com/engine/install/linux-postinstall/):
Finally, Docker will work without the need for sudo command
docker run hello-world
*To run docker-compose we’ll use:
docker compose <command>
