Docker is one of the most popular services that ever made. It allows you to create an isolated environment for development or deployment. With Docker, you can manage your infrastructure in the same way as you manage your applications. By using Docker, you can design high-performance scalable applications. It's one of the best solutions for microservices deployment and allows you to orchestrate your application on multiple servers. In this article, We are going to install Docker on Debian 10 based on its official instruction.
To install Docker and docker-compose, use the automatic installation script:
And the result will be:

Let's have a look into the script:
First of all, it checks the root access for the installation, after that it detects the OS-ID from the “os-release” file to run the proper install instruction:
For the Debian based operating systems, the installation instruction contains the following steps:
1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:
2. Add Docker’s official GPG key:
3. Use the following command to set up the stable repository:
4. Update the apt package index, and install the latest version of Docker Engine and contained:
So, The installation function is:
Now, docker and docker-compose commands have been installed.