Install Docker on Debian Server

Let’s start this simple tutorial about installing docker system on your OS. I used Debian 13 as Linux System

Configure apt for use the Docker repository

# Add Docker's official GPG key:
sudo apt update
sudo apt install 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:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF

sudo apt update

Install and verify Docker Installation

Now we can install Docker packages

sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Just to verify that Docker is well install after the last command we can try:

 sudo systemctl status docker

and then

sudo docker run hello-world

Comments

One response to “Install Docker on Debian Server”

Leave a Reply

Your email address will not be published. Required fields are marked *