Created
January 18, 2019 20:51
-
-
Save nsollazzo/5895fdcec499359094be806d403c2731 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/sh | |
sudo apt-get remove docker-compose | |
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 +x $DESTINATION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment