How to Install Docker on AlmaLinux 9

To install Docker on AlmaLinux 9, enable Docker repository

dnf config-manager --add-repo=

To install docker, run

dnf install docker-ce

To start docker on boot, run

systemctl enable docker

To start docker

systemctl start docker

To verify if docker is working, run

docker run hello-world

Install older version of docker

First, remove the current docker version with the command

dnf remove docker-ce -y

To list all available docker version, run

dnf list docker-ce --showduplicates | sort -r

To install older version of docker, specify the version and –nobest option, for example

dnf install docker-ce docker-ce-3:25.0.5-1.el9 --nobest

Back to Docker

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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