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.

















![[Updated] Critical cPanel Authentication Vulnerability (28th April 2026) – Immediate Server Update Required](/_gatsby/image/9362bad24aca87aaa90e289c118b76b0/a70bf8734527b8d8f116d23dc89dc569/netshopisp-cpanel-whm-vulnerability-april-2026.png?u=https%3A%2F%2Fnsblg42.netshop-isp.com.cy%2Fwp-content%2Fuploads%2F2026%2F04%2Fnetshopisp-cpanel-whm-vulnerability-april-2026.png&a=w%3D32%26h%3D32%26fm%3Dpng%26q%3D75&cd=7f5f10dc79af53379741259c5c02101d)


