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 usesDocker 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 https://docs.docker.com/engine/install/debian.
Video Tutorial
Text Tutorial
- Set up reposetory.
- Update the
apt
package index by commandsudo apt-get update
. - Install packages to allow
apt
to use a repository over HTTPS by command:sudo apt-get install ca-certificates curl gnupg lsb-release
. - Add Docker’s official GPG key by command:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
. - Use the following command to set up the
stable
repository. To add thenightly
ortest
repository, add the wordnightly
ortest
(or both) after the wordstable
in the commands below. Learn about nightly and test channels.
- Update the
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- Install Docker Engine
- Update the
apt
package index, by command:sudo apt-get update
. - Install the latest version of
Docker Engine
andcontainerd
by command:sudo apt-get install docker-ce docker-ce-cli containerd.io
.
- Update the