Docker Installation on Ubuntu 24
Docker Installation on Ubuntu 24.04 (Updated Guide)
This document explains the steps required to install Docker on the Ubuntu 24.04 operating system. By following these instructions, Docker can be deployed and configured properly on the server environment.
1) Update System Packages
First, the system packages must be updated. Run the following commands in sequence:
sudo apt update
sudo apt upgrade -y
2) Install Required Packages
Install the necessary packages needed for Docker installation by executing the command below:
sudo apt install ca-certificates curl gnupg lsb-release -y
3) Add Docker GPG Key
Add the official Docker GPG key to verify the authenticity of Docker packages:
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
4) Add Docker Repository to the System
Add the official Docker repository using the following command:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
5) Update Package List
Update the package list with the newly added repository:
sudo apt update
6) Install Docker Components
Install Docker Engine and its related components by running:
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
7) Start and Enable Docker Service
After installation, start the Docker service and enable it to run at system startup:
sudo systemctl start docker
sudo systemctl enable docker
Check the service status with the command below:
sudo systemctl status docker
8) Verify Docker Installation
Run the following command to confirm the installation is successful:
sudo docker run hello-world
If this command executes successfully, a message confirming that Docker is installed and working will appear.
The installation process is now complete. The server is ready to run containerized applications using Docker.
You can click here for our Ubuntu operating system servers where you can install Docker.
Can't find the information you're looking for?
You have examined the knowledge base in detail, but if you cannot find the information you need,
Create a Support Ticket-
How to Open Ports in Windows?
442 2
-
How to Grant Windows Administrator Privileges?
356 0
-
How to install Webmin on Ubuntu?
990 2
-
Linux SSH Terminal Commands and Explanations
937 3
-
CentOS Stream 10 Update Commands
1004 1
-
CentOS Stream 9 Update Commands
1551 2
-
CentOS Stream 8 Update Commands
770 0
-
What is FreeBSD?
964 2
-
Out: 452 4.3.1 Insufficient system storage
855 2
-
Turning Off Automatic Updates in Windows Operating Systems
987 1