How do I install Docker CE on Debian 10 Buster?, How can I install Docker Compose on Debian 10 Buster?. In this guide, I’ll discuss a step by step installation of Docker and Docker Compose on Debian 10 (Buster).

install docker compose debian 10

Docker is the most popular and widely used container runtime. It enables you to package and run your applications in isolated containers in a single server or cluster of Linux servers orchestrated by Kubernetes and similar tools.

Docker Editions

There are two editions of Docker available.

  • Community Edition (CE): ideal for individual developers and small teams looking to get started with Docker and experimenting with container-based apps.
  • Enterprise Edition (EE): Designed for enterprise development and IT teams who build, ship, and run business-critical applications in production at scale.

This guide will cover installation of Docker CE on Debian 10 Buster. But let’s first look at common docker terminologies.

Docker Components / Terminologies

Below are commonly used terminologies in Docker ecosystem.

  • Docker daemon: This is also called Docker Engine, it is a background process which runs on the host system responsible for building and running of containers.
  • Docker Client: This is a command line tool used by the user to interact with the Docker daemon.
  • Docker Image: An image is an immutable file that’s essentially a snapshot of a container. A docker image has a file system and application dependencies required for running applications.
  • Docker container: This is a running instance of a docker image with an application and its dependencies. Each container has a unique process ID and isolated from other containers. The only thing containers share is the Kernel.
  • Docker registry: This is an application responsible for managing storage and delivery of Docker container images. It can be private or public.

Install Docker CE on Debian 10 Buster

Follow the steps covered in the next parts of this article to install and use Docker CE on Debian 10 (Buster).

Step 1: Install Dependency packages

Start the installation by ensuring that all the packages used by docker as dependencies are installed.

sudo apt update
sudo apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common

Step 2: Add Docker’s official GPG key:

Import Docker GPG key used for signing Docker packages.

curl -fsSL | sudo apt-key add -

Step 3: Add the Docker repository to Debian 10

Add Docker repository which contain the latest stable releases of Docker CE.

sudo add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \

This command will add the line shown in /etc/apt/sources.list file.

deb [arch=amd64] buster stable

Step 4: Install Docker & Docker Compose on Debian 10 (Buster)

Update the apt package index.

sudo apt update

To install Docker CE on Debian 10, run the command:

sudo apt -y install docker-ce docker-ce-cli

Use the guide below to install latest Docker Compose on Debian 10 (Buster).

How To Install Latest Docker Compose on Linux

This installation will add docker group to the system without any users. Add your user account to the group to run docker commands as non-privileged user.

sudo usermod -aG docker $USER
newgrp docker

Check docker and compose version.

$ docker version
Client: Docker Engine - Community
 Version:           19.03.2
 API version:       1.40
 Go version:        go1.12.8
 Git commit:        6a30dfc
 Built:             Thu Aug 29 05:29:29 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
  Version:          19.03.2
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.8
  Git commit:       6a30dfc
  Built:            Thu Aug 29 05:28:05 2019
  OS/Arch:          linux/amd64
  Experimental:     false
  Version:          1.2.6
  GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
  Version:          0.18.0
  GitCommit:        fec3683

Log out and log back in so that your group membership is re-evaluated.


Step 5: Test Docker installation.

Run a test docker container:

$ docker run --rm -it  --name test alpine:latest /bin/sh
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
cd784148e348: Pull complete
Digest: sha256:46e71df1e5191ab8b8034c5189e325258ec44ea739bba1e5645cff83c9048ff1
Status: Downloaded newer image for alpine:latest

/ # cat /etc/os-release
NAME="Alpine Linux"
PRETTY_NAME="Alpine Linux v3.9"
/ # exit

Step 6: Test Docker Compose installation.

Create a test Docker Compose file.

$ vim docker-compose.yml

Add below data to the file.

version: '3'  
    image: nginx:latest
     - "8080:80"
     - php
    image: php:7-fpm

Start service containers.

$ docker-compose up -d


docker compose start containers

Show running Containers

$ docker-compose ps

Destroy containers

$ docker-compose stop
$ docker-compose rm
Going to remove vagrant_web_1, vagrant_php_1
Are you sure? [yN] y
Removing vagrant_web_1 … done
Removing vagrant_php_1 … done

You have successfully installed Docker on Debian 10 (Buster) Linux. Go through Official Docker documentation and Docker Compose documentation to learn more.

Setup Docker UI (Optional)

If you need a UI management console for Docker hosts and containers, checkout Portainer.

How to Install Portainer Docker UI manager

Monitoring Docker containers

Monitoring Docker containers can be achieved by using Monitoring tools such as Netdata, Prometheus and Grafana. Below guide should also be helpful Check Container container metrics with Ctop.

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


  1. Hello, just wanted to reach out and let the writer know that this installation guide does not work. Fails on the run migrations in task container task every time.


Please enter your comment!
Please enter your name here