Skip to content

Instantly share code, notes, and snippets.

@arvati
Last active June 16, 2020 18:37
Show Gist options
  • Select an option

  • Save arvati/0020b3ef7c8adbc1e73145df5807e7e0 to your computer and use it in GitHub Desktop.

Select an option

Save arvati/0020b3ef7c8adbc1e73145df5807e7e0 to your computer and use it in GitHub Desktop.
Install docker into debian Buster

Install docker into debian Buster

link: https://linuxize.com/post/how-to-install-and-use-docker-on-debian-10/

Installing

sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg2
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 update
sudo apt install docker-ce
sudo usermod -aG docker $USER

Testing

sudo systemctl status docker
docker -v
docker container run hello-world

Using

docker search debian
docker container run debian
docker container run -it debian /bin/bash
docker container ls -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment