Skip to content

Instantly share code, notes, and snippets.

@scyto
Last active June 1, 2024 18:50
Show Gist options
  • Save scyto/83bc728e47afeb21bf42c8a96fe6ccfd to your computer and use it in GitHub Desktop.
Save scyto/83bc728e47afeb21bf42c8a96fe6ccfd to your computer and use it in GitHub Desktop.
Install docker on debian the easy way

This is the easiest way to install docker and docker compose on debian.

Better yet docker updates can be done by rerunning the script mentioned or using apt upgrade etc

Assumes you followed Debian VM Install Instructions

Install Docker

Login as yourself

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo systemctl enable docker
sudo systemctl start docker

No really thats it. Note the latest version of the script automatically installs the docker compose plugin. so no need to install python or old docker-compose python app.

@scyto
Copy link
Author

scyto commented Jun 1, 2024

if you do this on a pi based OS instead of debian you may need to also run sudo usermod -aG docker pi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment