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 APIsto 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
aptpackage index by commandsudo apt-get update.
- Install packages to allow
aptto 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
stablerepository. To add thenightlyortestrepository, add the wordnightlyortest(or both) after the wordstablein 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
aptpackage index, by command:sudo apt-get update.
- Install the latest version of
Docker Engineandcontainerdby command:sudo apt-get install docker-ce docker-ce-cli containerd.io.
- Update the