Install docker and docker-compose on Linux Mint 20.3

Issue the following commands in the terminal, one by one and you are ready to go! It’s simple as that 🙂

#docker setup
echo "deb [arch=amd64] focal stable" | sudo tee /etc/apt/sources.list.d/docker.list
curl -fsSL | sudo apt-key add -
sudo apt update
sudo apt install docker-ce docker-ce-cli pigz

#execution permission
sudo usermod -aG docker $USER

#docker compose
sudo curl -L "$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose</pre>