How to Install Docker Compose on Linux

Posted by

As you have seen from previous articles deploying a single container can be easy but what if we need to deploy multiple containers that need to communicate with each other?  Docker Compose is the tool you are seeking but first we have to install it.

You can find the instructions here:

First, let’s make sure we don’t already have it installed:

$ docker-compose version

Ok, so no Docker Compose

$curl -L “https://github.com/docker/compose/releases/download/1.27.1/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose

Gets the latest stable release of of Docker compose

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

Apply the executable permissions to the binary

$ docker-compose –version

This will show you the current version, this proving a successful install

Summary:
As you can see I like to keep things easy and simple.  As always, I hope y’all found this useful.

Leave a Reply