How to Install Docker Compose on Linux

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:

Screenshot from the Install Docker Compose on Linux walkthrough at step 1, showing but can be installed with; the adjacent article text explains that first, let’s make sure we don’t already have it installed.

$ docker-compose version

Ok, so no Docker Compose

Linux terminal showing curl downloading the Docker Compose binary to /usr/local/bin/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

Screenshot from the Install Docker Compose on Linux walkthrough at step 3; the adjacent article text explains that gets the latest stable release of of Docker compose.

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

Apply the executable permissions to the binary

Screenshot from the Install Docker Compose on Linux walkthrough at step 4, showing docker-compose version 1.27.1; the adjacent article text explains that $ docker-compose -version.

$ 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.

Continue reading

How to apply tags in Docker

Explore another guide in this topic and build on what you have just read. Read the article

Leave a Reply

Discover more from Digital Thought Disruption

Subscribe now to keep reading and get access to the full archive.

Continue reading