Debian 13 - Install Docker
Related Posts
Steps
Docker Documentation Method
Run the following script to install docker on Debian 13.
#!/bin/bash
# Update the apt package index and install packages to allow apt to use a repository over HTTPS
sudo apt update
sudo apt install -y \
apt-transport-https \
ca-certificates \
curl
# Add Docker's official GPG key and add read permission to everyone.
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 a the docker repository by creating a docker.list file in /etc/apt/sources.list.d directory
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
# Install docker with the docker compose and the buildx plugin.
# More info on buildx here: https://github.com/docker/buildx
sudo apt update && \
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Add yourself to the docker group so you can run docker commands
# without sudo
sudo adduser $USER docker
References
Last updated: 13th August 2025
First published: 13th August 2025
First published: 13th August 2025