Docker Compose Install

Set up Docker-compose

Connect to the VM again (in case you exit or loose connection):

ssh root@<IP address>

where - the address of the VM for deploy

The source to install docker-compose https://docs.docker.com/compose/install/ can be used instead current step.

Run this command to download the current stable release of Docker Compose

Note: To install a different version of Compose, substitute 1.29.2 with the version of Compose you want to use

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

make executable permissions to the binary

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

Note: If the command docker-compose fails after installation, check your path. Here is the nice acticle explaining what is path for Ubuntu and how to make components visible to system and command line using it. You can also create a symbolic link to /usr/bin or any other directory in your path.

For example:

ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Check the docker-compose installation:

the result should be like:

 

If you see a Marionette Stacksage like 'docker-compose version 1.29.2, build 40524192', you're all set. In case you're getting some error Marionette Stacksage please visit this official guide for Docker Compose Versioning.