Gaming industry under DDoS attack. Get DDoS protection now. Start onboarding
  1. Home
  2. Developers
  3. How to Install Docker Engine on Debian 11

How to Install Docker Engine on Debian 11

  • By Gcore
  • August 10, 2023
  • 2 min read
How to Install Docker Engine on Debian 11

Docker is a powerful and popular container platform that lets developers bundle, share, and handle applications and their requirements in separate spaces known as containers. These containers offer a steady and dependable setting for apps to operate, making sure they function smoothly across different systems, no matter the variations in the basic structure. In this article, we’ll walk you through the simple procedure of setting up Docker Engine on Debian 11. 

What is Docker Engine?

Docker streamlines application management by isolating them in “containers,” ensuring consistent operation across diverse systems. This technology simplifies application mobility and management, minimizing issues from varying system configurations. Some common uses of Docker include:

  1. Application Testing. Docker creates controlled testing environments, ensuring applications work correctly before deployment.
  2. Microservices. It simplifies managing small, independent services within larger applications, improving development and updates.
  3. Continuous Integration/Continuous Deployment (CI/CD). It speeds up development by automating building, testing, and deploying applications.
  4. Server Consolidation. It maximizes server resource use by running multiple applications on a single server without conflicts.
  5. Scalability. Docker’s container approach enables easy scaling of applications to adapt to varying user demands.

These are just a handful of use cases for Docker. Overall, Docker enhances application development, testing, and deployment by providing a reliable and efficient method for handling software and its requirements. In the following section, we’ll delve into the step-by-step installation process of Docker on Debian 11.

Installing Docker Engine on Debian 11

To install Docker on Debian 11, follow these steps:

#1 Update a Package List

Make sure your package list is up to date by opening a terminal and running the following command.

sudo apt update

#2 Install Required Packages

Install the required packages to enable apt to use HTTPS repositories and support other package types.

sudo apt install apt-transport-https ca-certificates curl software-properties-common

#3 Add Docker Repository

You can add Docker’s official GPG key and repository to your system by following these steps.

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgecho "deb [arch=amd64 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

#4 Update Package List Again

Please run the update command again to ensure that the Docker repository is included.

sudo apt update

#5 Install Docker Engine

Install Docker Engine and its dependencies.

sudo apt install docker-ce docker-ce-cli containerd.io

#6 Start and Enable Docker

Start the Docker service and enable it to start on boot. First run the command:

sudo systemctl start docker

To automatically launch alongside the operating system, include it in the startup configuration with this command.

sudo systemctl enable docker

#7 Verify Installation

To ensure that Docker is up and running, try running a basic container with a “Hello World” command.

sudo docker run hello-world

Congratulations! You have successfully installed Docker on Debian 11. Get ready to efficiently manage and run containers for your applications.

Conclusion

Looking to deploy Docker with managed Kubernetes? Gcore’s Managed Kubernetes is the perfect solution.

  • Free production-grade cluster management with a 99.9% SLA
  • Free egress traffic
  • Bare Metal support for worker nodes for outstanding latency and performance

Deploy Docker with Gcore

Related articles

What's the difference between multi-cloud and hybrid cloud?

Multi-cloud and hybrid cloud represent two distinct approaches to distributed computing architecture that build upon the foundation of cloud computing to help organizations improve their IT infrastructure.Multi-cloud environments involve us

What is multi-cloud? Strategy, benefits, and best practices

Multi-cloud is a cloud usage model where an organization utilizes public cloud services from two or more cloud service providers, often combining public, private, and hybrid clouds, as well as different service models, such as Infrastructur

What is cloud migration? Benefits, strategy, and best practices

Cloud migration is the process of transferring digital assets, such as data, applications, and IT resources, from on-premises data centers to cloud platforms, including public, private, hybrid, or multi-cloud environments. Organizations can

What is a private cloud? Benefits, use cases, and implementation

A private cloud is a cloud computing environment dedicated exclusively to a single organization, providing a single-tenant infrastructure that improves security, control, and customization compared to public clouds.Private cloud environment

What is a cloud GPU? Definition, types, and benefits

A cloud GPU is a remotely rented graphics processing unit hosted in a cloud provider's data center, accessible over the internet via APIs or virtual machines. These virtualized resources allow users to access powerful computing capabilities

What is cloud networking: benefits, components, and implementation strategies

Cloud networking is the use and management of network resources, including hardware and software, hosted on public or private cloud infrastructures rather than on-premises equipment. Over 90% of enterprises are expected to adopt cloud netwo

Subscribe to our newsletter

Get the latest industry trends, exclusive insights, and Gcore updates delivered straight to your inbox.