X
X

Select Your Currency

Türk Lirası $ US Dollar
X
X

Select Your Currency

Türk Lirası $ US Dollar
Yıllık Satın Alımlarda %15 İndirim: Şimdi Tasarruf Edin! Detaylı Bilgi İçin Tıklayın!

Knowledge Base

HomepageKnowledge BaseUbuntuDocker Installation on Ubuntu 24

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
Did you find it useful?
(2 times viewed. / 0 people found helpful.)