Last active
July 2, 2025 01:33
-
-
Save makevoid/a5e728c28bec85d04d67c6e3f55ebc09 to your computer and use it in GitHub Desktop.
Install docker on debian 12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # One line install: | |
| # bash <(curl -s https://gist.githubusercontent.com/makevoid/a5e728c28bec85d04d67c6e3f55ebc09/raw/2774d772f5b7685393a9e99b74ffc58c467f3f89/install-docker.sh) | |
| # Add Docker's official GPG key: | |
| sudo apt update -y | |
| sudo apt install -y ca-certificates curl | |
| sudo install -m 0755 -d /etc/apt/keyrings | |
| sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc | |
| sudo chmod a+r /etc/apt/keyrings/docker.asc | |
| # Add the repository to Apt sources: | |
| echo \ | |
| "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ | |
| $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | |
| sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
| sudo apt update -y | |
| sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
| sudo docker run hello-world | |
| sudo newgrp docker | |
| sudo usermod -aG docker $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment