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!