How to install Docker Compose on CentOS 8
In this tutorial, I will show you how to install Docker Compose on CentOS 8.
Update your system.
# dnf update -y
Add Docker-CE repository to your system.
# dnf config-manager –add-repo=https://download.docker.com/linux/centos/docker-ce.repo
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/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
You can check the latest releases here: https://github.com/docker/compose/releases
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
centos 8