How to run Docker and Docker Compose on Debian 10

Installing Docker

sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose
sudo usermod -aG docker your-user
sudo reboot

.. after reboot ..

docker un hello-world

Mirror from

Docker - Install Docker Engine on Debian - https://docs.docker.com/engine/install/debian/

Previous Post Next Post