Knowledge Base

Browse our knowledge base for free solutions to common problems

Install Docker Compose on CentOS 7

Created On: 14 September 2022
Written by: Ben

Ensure that curl is installed:

yum install curl -y

Pull the binary from docker:

sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Make the binary executable:

sudo chmod +x /usr/local/bin/docker-compose

Test the binary by pulling through the compose version:

docker-compose --version

You should see something like the following:

[root@test ~]# docker-compose --version
docker-compose version 1.23.1, build b02f1306
[root@test ~]#

Installation complete!

ICTU LTD is a company registered England and Wales (Company No. 09344913) 15 Queen Square, Leeds, West Yorkshire, England, LS2 8AJ
Copyright © 2024 ICTU LTD, All Rights Reserved.
exit