Showing posts with label How to install docker on Ubuntu. Show all posts
Showing posts with label How to install docker on Ubuntu. Show all posts

Tuesday, September 9, 2025

Docker : How to install docker on Ubuntu 24.04 Linux OS ?

 

How to install docker on Ubuntu 24.04 Linux OS  


Installing Docker on Ubuntu 24.04 is a straightforward process. Here's a step-by-step walkthrough

🛠️ Step-by-Step Guide to Install Docker on Ubuntu 24.04

Update Your System

sudo apt update && sudo apt upgrade


Install Required Packages. 

These help your system communicate securely with Docker’s repository. 

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


Add Docker’s Official GPG Key

        curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg


Add Docker Repository

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null


Update Package Index Again

sudo apt update


Install Docker Engine

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


Start and Enable Docker

sudo systemctl start docker
sudo systemctl enable docker


(Optional) Run Docker Without Sudo

sudo usermod -aG docker $USER
newgrp docker


Test Your Installation

docker run hello-world

Testing a New Product: Essential Information Software Testers Must Gather in the AI Era

    Learn what information software testers must gather before starting testing a new product, including AI, automation, compatibility, and ...