Install Docker Engine on Debian

Page content

About Docker Engine

Docker Engine is an open source containerization technology for building and containerizing your applications. Docker Engine acts as a client-server application with:

  • A server with a long-running daemon process dockerd.
  • APIs which specify interfaces that programs can use to talk to and instruct the Docker daemon.
  • A command line interface (CLI) client docker. The CLI uses Docker APIs to control or interact with the Docker daemon through scripting or direct CLI commands. Many other Docker applications use the underlying API and CLI. The daemon creates and manage Docker objects, such as images, containers, networks, and volumes.

For more details, see Docker Architecture.

For more information, go to

Video Tutorial

Text Tutorial

  1. Set up reposetory.
    1. Update the apt package index by command sudo apt-get update.
    2. Install packages to allow apt to use a repository over HTTPS by command: sudo apt-get install ca-certificates curl gnupg lsb-release.
    3. Add Docker’s official GPG key by command: curl -fsSL | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg.
    4. Use the following command to set up the stable repository. To add the nightly or test repository, add the word nightly or test (or both) after the word stable in the commands below. Learn about nightly and test channels.
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  1. Install Docker Engine
    1. Update the apt package index, by command: sudo apt-get update.
    2. Install the latest version of Docker Engine and containerd by command: sudo apt-get install docker-ce docker-ce-cli