Skip to content

Instantly share code, notes, and snippets.

@WhoAteDaCake
Created June 10, 2019 11:55
Show Gist options
  • Save WhoAteDaCake/0a092e79e6e40747b1e9aa94385cded9 to your computer and use it in GitHub Desktop.
Save WhoAteDaCake/0a092e79e6e40747b1e9aa94385cded9 to your computer and use it in GitHub Desktop.
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