Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Open In App
Next Article:
How to Install Docker on Debian?
Next article icon

How To Install Docker Engine On AWS Debian Linux Server?

Last Updated : 26 Feb, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

The installation of Docker Engine on a Debian system is an initial step in deploying containerized applications. In this article, we explain how to perform effortless setup of Debian operating system and install Docker on top of this to adopt containerization technology. This article provides thorough step-by-step guidelines for Docker Engine installation. Understand the potential of containerization on Debian as we work through fundamental ideas and real-world applications.

Table of Content

  • What is Docker?
  • What is the Debian operating system?
  • Step-by-Step Guide: Install Docker Engine on Debian
  • Docker On Debain System - FAQ's

What is Docker?

By providing containerization—a lightweight, portable approach that enables apps to execute effectively across diverse environments—Docker revolutionizes software deployment. Docker containers simplify the development, testing, and deployment processes by encapsulating a program and all of its dependencies in a self-contained, isolated environment.

What is the Debian operating system?

Debian is a well-known, dependable open-source operating system that is known for its stability and efficient package management system. It supports a variety of computing requirements and provides a solid foundation for both desktop and server setups. It facilitates both developers and system administrators who are looking for a flexible and safe platform. Debian is always a preferred option because of its dedication to the principles of free software and its well-maintained repository.

Step-by-Step Guide: Install Docker Engine on Debian

Firstly, let's setup a Debian operating system on the AWS cloud platform, then go for the installation of the Docker Engine. The following is a step-by-step guide to this.

Step 1: Login to an Amazon Account

  • Navigate to the AWS account login console in your browser.
  • Login to the AWS account with your credentials.

AWS-login-in

Step 2: Navigate To EC2 Dashboard

  • After successfully login in to AWS account, Navigate to the Console home to EC2 Dashboard.
  • Click on the "Launch Instance" for creating the instance with debian operating system.

EC2-Dashboard

  • Provide the Name to this create instance Ex: my_debian_instance
  • Select the debian AMI image.
  • Specify the number of Instances labeled box in the right side with 1 as shown in the below screenshot.

Selecting-Debian-AMI

Step 3: Configure The Network Security Groups

  • Go for the Network security groups in that page.
  • Click on edit option beside to that name.
  • Now configure the network as shown in the below figure, allow the inbound traffic, to don't face any network issue form the AWS account side.

Note: To improve the security you can restrict the inbound traffic.

Network-Security-Groups

Step 4: Connect To The Instance

  • Wait till the creating instance comes from the pending state to running state.
  • Once the instance came to the running state connect to it.

6-Connecting-to-Instance

Step 5: Establishing SSH connection With Local System

  • Go the ssh section in the networking section.
  • Then copy the ssh command from their.

SSH-Section

Step 6: Update System Software

  • Open the command line in the local system and redirect to the directory where ssh key is present.
  • Now run the ssh command and establish the remote login from the local system.
  • After successful connecting with remote login, update and upgrade the system software with the following commands.
sudo apt update     
sudo apt upgrade -y

  • The below screenshot shows practical execution of above two command updating and upgrading of system software.

Updating-the-system

Step 7: Install Docker Dependencies

  • Install necessary packages for Docker installation with the following command:
sudo apt install -y apt-transport-https ca-certificates curl gnupg lsb-release

Install-the-docker-dependencies

Step 8: Add Docker GPG Key

  • Add Docker's official GPG key to ensure package integrity with following command:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg \
--dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Adding-Docker-gpgkey

Step 9: Set up Docker Repository

  • Run the following command for configuring the Docker repository for Debian.
echo "deb [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

Configuring-The-Docker-Registry

Step 10: Install Docker Engine

  • Update the package index with below showing command `sudo apt update` and then install the Docker with ` sudo apt install -y docker-ce docker-ce-cli containerd.io`
     sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io

Installing-The-DockerStep 11: Start and Enable Docker

  • Start the Docker service and enable it to start on boot with the following commands:
 sudo systemctl start docker
sudo systemctl enable docker

  • The below screenshot shows the starting of the docker service by executing the above command.

Starting-The-Docker-Servie

Step 12: Verify Installation

  • Check Docker version and run a test container with the following commands.
 docker --version

Verfying-the-Docker

and

docker run hello-world

Running-The-Docker-Container

Your AWS Debian instance is now available with Docker Engine, allowing you to efficiently deploy and manage your containers.


Next Article
How to Install Docker on Debian?

K

kattagopi6174
Improve
Article Tags :
  • Docker
  • docker

Similar Reads

  • How to Install Docker on Amazon Linux
    Docker is a tool which helps to automate the deployment of applications in containers to make sure that particular applications can work efficiently in different environments without any errors.It helps developers to build, ship, and run application faster and more reliable way. In this article, we
    3 min read
  • How to Install a Package on Alpine Linux Docker ?
    Building efficient and lightweight Docker containers is a key advantage, and Alpine Linux is a popular choice for its minimal footprint. But how do you get the essential tools you need running within your Alpine containers? This guide will equip you with the knowledge to effortlessly install package
    4 min read
  • How to Install Docker on Debian?
    Docker Service Product is the essential tool used for the development purpose of any software where the said software needs to be passed through different development phases. The Installed Docker Service makes Operating System-Level Virtualization to create Docker Containers. Docker can easily be in
    4 min read
  • How To Install Docker On AWS EC2 ?
    You can use the following instructions to install Docker on an AWS EC2 instance. Note that depending on the Linux distribution your EC2 instance is running, there may be differences in certain commands or processes. What is Docker?Docker is an OS-level virtualization that provides tools for building
    3 min read
  • Linux Post-Installation Steps for Docker Engine
    When it comes to containerization Docker is the go to choice allowing developers and system admins to bundle applications and their requirements into containers. After setting up Docker Engine on your Linux setup it's essential to carry out installation tasks to make the most of its capabilities. Le
    6 min read
  • Install Docker Engine On CentOS Using AWS EC2 Instance
    The Docker Engine facilitates efficient containerization and helps optimize the deployment and management processes. CentOS and Redhat are enterprise-based Linux distributions. Working on this using containerization technology enhances productivity by containerizing your applications and managing th
    7 min read
  • How to Install and Run Jekyll on Docker?
    Jekyll is an open-source software used to develop websites. Jekyll is a free application present on the internet. The word open source refers that the application being free to use. Jekyll is the application used to develop static websites. Jekyll generally takes the text in the user's favorite mark
    4 min read
  • How to Install Apache Web Server on Linux Cloud Server?
    Apache is an open-source web server used widely for hosting websites and web applications. It's popular on the internet and supports platforms like Linux, Windows, and macOS. Installing Apache on a Linux-based cloud server is straightforward. Cloud servers offer flexibility and scalability, enabling
    5 min read
  • How to Install PHP on Alpine Linux?
    Alpine Linux is a Linux distro that is lightweight and security-focused. The main aim of alpine is to be minimalistic be it in scope or space. Since it is small in size it is used in those containers which require less time for booting. Unlike other distros which use GNU, Glibc alpine used musl, bus
    2 min read
  • How to Install Redis on Debian?
    Want to set up Redis on a Debian system? Redis is a potent in-memory data structure store that may be used as a message broker, database, and cache. We'll lead you through the Redis installation process on Debian in this article, ensuring that you can swiftly start the Redis server. Regardless of wh
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences