
Install Docker Engine and Docker Compose on Linux CentOS
To begin the installation of Docker Engine and Docker Compose on CentOS, ensure that the operating system supports Docker. In this implementation, CentOS version 7 is used, and make sure to run the command yum update -y
on the CentOS OS.

Install the yum-utils
package and set up the repository.
$ sudo yum install -y yum-utils -y
$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Next, install Docker Engine, containerd, and Docker Compose.
$ sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
Then, enable and start the Docker service. Don’t forget to check the status of the Docker service.
$ sudo systemctl enable docker && sudo systemctl start docker
$ sudo systemctl status docker


When Docker is active, verify the availability and version of Docker Engine and Docker Compose using the command below.
$ sudo docker ps
$ docker --version
$ docker compose version

Leave a Reply