Docker is a containerization platform that allows you to quickly build, test and deploy applications as portable, self-sufficient containers that can run virtually anywhere.

In this tutorial, we’ll explain how to install Docker on Debian 10 Buster and explore the basic Docker concepts and commands.

Install Docker on Debian

Perform the following steps to install the latest stable Docker version from the Docker’s repositories.

  1. Install the packages necessary to add a new repository over HTTPS:
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg2
  1. Import the repository’s GPG key using the following [curl](https://linuxize.com/post/curl-command-examples/) command :
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
  1. On success, the command will return OK.
  2. Add the stable Docker APT repository to your system’s software repository list:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
  1. _$(lsb_release -cs)__ will return the name of the Debian distribution . In this case, that is _buster_._
  2. Update the apt package list and install the latest version of Docker CE (Community Edition):
sudo apt update
sudo apt install docker-ce
  1. Once the installation is completed the Docker service will start automatically. To verify it type in:
sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-07-30 20:52:00 GMT; 1min 11s ago
    Docs: https://docs.docker.com
...
  1. At the time of writing, the latest stable version of Docker is 19.03.1:
docker -v
Docker version 19.03.1, build 74b1e89

#docker #debian #linux #debian 10 buster

How to Install and Use Docker on Debian 10 Linux
5.10 GEEK