Installation Guides

How to Install Docker on CentOS 9

Step-by-step instructions for installing Docker on CentOS 9.

December 20, 2025 1049 views

How to Install Docker on CentOS 9

This comprehensive guide will walk you through installing Docker on CentOS 9. Follow these steps carefully to ensure a successful installation.

Prerequisites

  • A fresh CentOS 9 server
  • Root or sudo access
  • At least 2GB of RAM
  • 20GB of available disk space

Step 1: Update System Packages

First, ensure your system is up to date:

sudo dnf update -y

Step 2: Install Dependencies

Install required dependencies:

sudo dnf install -y yum-utils device-mapper-persistent-data lvm2

Step 3: Install Docker

Now install Docker using the package manager:

sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io -y

Step 4: Start and Enable Service

Start the Docker service and enable it to run on boot:

sudo systemctl start docker
sudo systemctl enable docker

Step 5: Configure Docker

Edit the configuration file located at /etc/docker/daemon.json:

sudo vi /etc/docker/daemon.json

Step 6: Verify Installation

Check that Docker is running correctly:

sudo docker --version
sudo docker run hello-world

Conclusion

Congratulations! You now have Docker running on CentOS 9. For additional configuration options, refer to the official Docker documentation.


Search Docs
Installation Guides

Step-by-step installation guides for various software and operating systems

View all articles