Tutorials

Hands-on guides and configuration examples.

Configuration library · scripts and downloads ↗

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.

  1. Check your Debian version

    This guide uses Debian 13 “Trixie”, an internet connection and a user with sudo access.

    Terminal
    cat /etc/os-release

    Check 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.

  2. Add the official Docker repository

    Install the required tools, download the signing key and add the APT repository for Trixie.

    Terminal
    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
    
    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
    EOF
  3. Install Docker Engine and Compose

    Refresh the package index and install Docker Engine, Buildx and the Compose v2 plugin.

    Terminal
    sudo apt update
    sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  4. Test Docker

    Start the service, enable it at boot and run the test container.

    Terminal
    sudo systemctl enable --now docker
    sudo docker run --rm hello-world
    sudo docker compose version

    The test should print “Hello from Docker!”. The final command displays the Docker Compose version.

Official Docker documentation ↗