How to install Docker Compose on CentOS 8

Опубликовано: 25 Март 2026
на канале: Unihost.com
1,153
5

In this tutorial, I will show you how to install Docker Compose on CentOS 8.

Actual guide: https://unihost.com/help/how-to-insta...

Update your system.
dnf update -y

Add Docker-CE repository to your system.
dnf config-manager --add-repo=https://download.docker.com/linux/cen...

Install the latest version of docker.
dnf install docker-ce --nobest

Start docker and add it to startup.
systemctl start docker
systemctl enable docker

Verify the docker version.
docker --version
Docker version 19.03.6, build 369ce74a3c

Install the curl command.
dnf install curl

Download the latest version of Docker Compose.
curl -L https://github.com/docker/compose/rel...`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

You can check the latest releases here: https://github.com/docker/compose/rel...

Test the installation.
docker-compose --version
docker-compose version 1.25.4, build 8d51620a

Uninstallation
To uninstall Docker Compose if you installed using curl.
rm /usr/local/bin/docker-compose
dnf remove docker-ce

#Unihost #Docker #Compose #DockerCompose #CentOS #CentOS8 #Guide