This one was tricky, I was reading the ‘official’ Docker docs on how to install Docker on Debian 13 and it didn’t work for me. After many tries I decided to take a walk and see some Halloween decorations in NYC.
When I came back I started doing some more research about installing how to install Docker on Debian 13. I have done this in the past when I was using Ubuntu. But, in Debian 13 things are a bit different and i got some security errors:
Warning: OpenPGP signature verification failed: https://download.docker.com/linux/debian trixie InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Error: Failed to parse keyring "/etc/apt/keyrings/docker.asc" Caused by: 0: Reading "/etc/apt/keyrings/docker.asc": Permission denied (os error 13) 1: Permission denied (os error 13)
Error: The repository 'https://download.docker.com/linux/debian trixie InRelease' is not signed.Then, I ran the following commands to install Docker on Debian 13(my new OS replacement for MacOS).
I removed my previous stuff I installed:
sudo rm -f /etc/apt/sources.list.d/docker.list /etc/apt/sources.list.d/docker.sourcesInstall dependencies running the below commands:
sudo apt update
sudo apt install ca-certificates curl -yAdd the official Docker GPG Key:
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.ascSet the repository using docker.sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: trixie
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOFUpdate apt and install Docker:
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -yFinally, verify the Docker installation:
sudo systemctl start dockerYou should see something like this:

sudo docker run hello-worldThe last command sudo docker run hello-world will download a docker test image and run it in a container. You should see something like this:
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
4f55086f7dd0: Pull complete
d5e71e642bf5: Download complete
Digest: sha256:11a3eb1597e864c51b3f56733cb2e8a90bf0c284bfc05f9444d81c558bc848aa
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/













