ස්ථාපන මාර්ගෝපදේශ

CentOS 9 හි Docker ස්ථාපනය කරන්නේ කෙසේද?

CentOS 9 මත Docker ස්ථාපනය කිරීම සඳහා පියවරෙන් පියවර උපදෙස්.

December 20, 2025 2847 අදහස්

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.

මෙම ලිපිය ශ්‍රේණිගත කරන්න

-
Loading...

ලේඛන සොයන්න
ස්ථාපන මාර්ගෝපදේශ

සියලුම ලිපි බලන්න