Install Docker on AlmaLinux 9

Installing Docker on AlmaLinux 9

Follow these steps to install Docker on your AlmaLinux system:

Step 1: Update Your System

Start by updating your system’s package index to make sure all existing packages are up to date:

sudo dnf update -y


Step 2: Add the Docker Repository

AlmaLinux 9 does not come with Docker in the default repository. Therefore, you will need to add the Docker repository to your system:

sudo dnf config-manager --add-repo=


Step 3: Install Docker Engine

With the Docker repo added, you can now install the Docker engine using the following command:

sudo dnf install docker-ce docker-ce-cli


Step 4: Start and Enable Docker

Once the installation is complete, start the Docker service and enable it to launch at boot:

sudo systemctl start docker
sudo systemctl enable docker


Step 5: Verify Installation

To verify that Docker has been installed correctly, run the hello-world image:

 class="language-sh">sudo docker run hello-world

If you see a message indicating that your Docker installation is working, congratulations! You have successfully installed Docker on AlmaLinux 9.

Post-installation Steps

After installing Docker, consider performing the following post-installation steps for better security and usability:

  • Manage Docker as a non-root user: To avoid using sudo when you use the Docker command, add your user to the “docker” group with the command: sudo usermod -aG docker <username></username>.
  • Configure Docker to start on boot: You’ve already enabled Docker to start on boot, but to ensure it’s configured correctly, use: sudo systemctl enable docker.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top