Skip to content

Instantly share code, notes, and snippets.

@scyto
Last active August 24, 2026 01:48
Show Gist options
  • Select an option

  • Save scyto/83bc728e47afeb21bf42c8a96fe6ccfd to your computer and use it in GitHub Desktop.

Select an option

Save scyto/83bc728e47afeb21bf42c8a96fe6ccfd to your computer and use it in GitHub Desktop.
Install docker on debian the easy way

πŸ“– This guide has moved

The maintained version now lives at Install docker on debian the easy way, part of scyto/homelab-docs β€” searchable, cross-linked, and easier to keep current.

This gist stays put so the comments below remain readable β€” there is a lot of useful troubleshooting in them. For corrections, please open a PR or issue on the repo.


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

scyto commented Jun 1, 2024

Copy link
Copy Markdown
Author

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

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