Skip to content

Instantly share code, notes, and snippets.

@b4oshany
Last active April 14, 2020 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b4oshany/b8419da6f377516e3f4ce2b6cc05397d to your computer and use it in GitHub Desktop.
Save b4oshany/b8419da6f377516e3f4ce2b6cc05397d to your computer and use it in GitHub Desktop.
Upgrade Docker Compose
#!/bin/bash
sudo apt-get remove docker-compose -y
sudo rm -f /usr/local/bin/docker-compose
sudo rm -f /usr/bin/docker-compose
pip uninstall docker-compose
sudo apt-get install -y jq
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r)
DESTINATION=/usr/bin/docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION
sudo chmod 755 $DESTINATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment