UPCOMING EVENT

Let's Meet during iFX EXPO International 2024 in Limassol, Cyprus (18-20 June)

Book a Meeting
  • +357 2425 0808
  • Login
  • English

Home

Blog

How To Install Docker on AlmaLinux 9 Ser...

How To Install Docker on AlmaLinux 9 Server

How To Install Docker on AlmaLinux 9 Server

NetShop ISP

NetShop ISP · Blog Author

Oct 19, 2023 · Technical Tutorials

Docker is a platform that simplifies the deployment and management of applications using container technology by leveraging the Linux kernel. In this article, we will provide a step-by-step guide to installing Docker on your AlmaLinux 9 Server.

Prerequisites

In order to follow this guide, you will need shell access to an AlmaLinux 9 machine with a root privileged user.

Steps to Install Docker on AlmaLinux 9

Step 1

First, switch to the root user using the following command. Unless stated otherwise, all subsequent commands must be executed as the root user.

john@localhost:~ sudo -i

Step 2

Check for available package updates by using the following command.

root@localhost:~ dnf check-update --quiet

Step 3

Add the official Docker repository as follows:

root@localhost:~ dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

Note that Docker does not provide a dedicated repository for AlmaLinux.

However, since AlmaLinux and CentOS are both downstream distributions of Red Hat Enterprise Linux, the CentOS repository can be used on AlmaLinux.

Step 4

Use the following command to install Docker CE:

root@localhost:~ dnf install --assumeyes --quiet docker-ce

Step 5

Start the Docker service and ensure it automatically starts on boot.

root@localhost:~$ systemctl enable --now docker

Step 6

Lastly, test that Docker works by creating a test container using the following command.

root@localhost:~ docker run --rm hello-world

Sample Output:

[root@server ~]# docker run --rm hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
70f5ac315c5a: Pull complete
Digest: sha256:dcba6daec718f547568c562956fa47e1b03673dd010fe6ee58ca806767031d1c
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

Congratulations! You have successfully installed Docker on your AlmaLinux 9 Server.

Press Releases
74

Free VPS Trial

No Credit Card Required.

Recent Posts

MT5 Access Server for Forex Brokers: Virtual vs. Dedicated

MT5 Access Server for Forex Brokers: Virtual vs. Dedicated

14 June, 2024

How To Extend Root Partition using Home Partition space in CentOS

How To Extend Root Partition using Home Partition space in CentOS

30 May, 2024

NetShop ISP to Attend iFX EXPO International 2024 and Announce Global Infrastructure Expansion

NetShop ISP to Attend iFX EXPO International 2024 and Announce Global Infrastructure Expansion

23 May, 2024

TNFX Broker Partners with NetShop ISP to Offer Low-Latency Forex VPS to Traders

TNFX Broker Partners with NetShop ISP to Offer Low-Latency Forex VPS to Traders

14 May, 2024

How to Install Nginx, MySQL, PHP on Ubuntu 22.04 (LEMP)

How to Install Nginx, MySQL, PHP on Ubuntu 22.04 (LEMP)

10 May, 2024

#letushostyou

Award Winning Hosting Provider established in 2004.

120 Faneromenis Avenue, Imperial Tower, 2nd Floor, Larnaca 6031, Cyprus

Products

Bare Metal Servers

Customized Servers

Virtual / Cloud Servers

Forex VPS

Storage VPS

cPanel Web Hosting

Reseller Web Hosting

Colocation

Addons

Premium DNS

Email Hosting

Cloud Backup

DDoS Protection

Licenses

SSL Certificates

Domain Names

Premium SLAs

About Us

Data Center Locations

Looking Glass

Our Company

Contact Us

Careers in Cyprus

Become a Partner

Awards

Certifications

© 2024 S.S. NetShop Internet Services Ltd. All rights reserved.  Terms & Conditions  |  Privacy Policy
CY Reg. Number: HE 217340 | EU VAT Number: CY10217340J

Visa
Mastercard
PayPal
Revolut
Wire Transfer