Last active
April 14, 2020 21:12
-
-
Save b4oshany/b8419da6f377516e3f4ce2b6cc05397d to your computer and use it in GitHub Desktop.
Upgrade Docker Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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