Skip to content

Instantly share code, notes, and snippets.

@akshaymittal143
Last active August 20, 2018 02:59
Show Gist options
  • Save akshaymittal143/eac7efd2503761fddc7b9b2eb631a1f7 to your computer and use it in GitHub Desktop.
Save akshaymittal143/eac7efd2503761fddc7b9b2eb631a1f7 to your computer and use it in GitHub Desktop.
Install docker-compose
# Install docker-compose
COMPOSE_VERSION=`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[0-9]+\.[0-9][0-9]+\.[0-9]+$" | tail -n 1`
sudo sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
sudo chmod +x /usr/local/bin/docker-compose
sudo sh -c "curl -L https://raw.githubusercontent.com/docker/compose/${COMPOSE_VERSION}/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment