Install Docker on Debian 13 (Trixie)
Docker runs applications in isolated containers that share the host kernel.
An image bundles the application and its dependencies so it can run in the same environment again.
Docker Compose describes multiple services in a YAML file so they can start together.
Check your Debian version
This guide uses Debian 13 “Trixie”, an internet connection and a user with sudo access.
Terminalcat /etc/os-releaseCheck that the output includes VERSION_ID="13" and VERSION_CODENAME=trixie. If you already use docker.io, Docker Compose v1 or a separate containerd installation, read the conflicting packages instructions in the official documentation before continuing.
Add the official Docker repository
Install the required tools, download the signing key and add the APT repository for Trixie.
Terminalsudo 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 sudo tee /etc/apt/sources.list.d/docker.sources >/dev/null <<EOF Types: deb URIs: https://download.docker.com/linux/debian Suites: trixie Components: stable Architectures: $(dpkg --print-architecture) Signed-By: /etc/apt/keyrings/docker.asc EOFInstall Docker Engine and Compose
Refresh the package index and install Docker Engine, Buildx and the Compose v2 plugin.
Terminalsudo apt update sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginTest Docker
Start the service, enable it at boot and run the test container.
Terminalsudo systemctl enable --now docker sudo docker run --rm hello-world sudo docker compose versionThe test should print “Hello from Docker!”. The final command displays the Docker Compose version.