How to Install Docker on Debian 10

Install Docker on Debian 10

In this article, we will have explained the necessary steps to install and configure Docker on Debian 10. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Docker is the most popular and widely used container runtime. It enables you to package and run your applications in isolated containers in a single server or cluster of Linux servers orchestrated by Kubernetes and similar tools.

Install Docker on Debian

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

Step 2. Install Docker on Debian 10.

Next, Import the repository’s GPG key:

Add the stable Docker APT repository to your system’s software repository list:

Then install Docker using following command:

Once the installation is completed the Docker service will start automatically:

To verify that Docker is installed, run the following command:

Step 3. Using Docker.

To search for an image from the Docker Hub registry, use the docker search command. For example, to search for a Debian image:

For example, the following command will start a Docker container based on the Debian image:

To list active Docker containers, use the following command:

Congratulation, you have learned how to install and configure Docker on Debian 10 Buster. If you have any question, please leave a comment below.