Skip to content

Instantly share code, notes, and snippets.

@nsollazzo
Created January 18, 2019 20:51
Show Gist options
  • Save nsollazzo/5895fdcec499359094be806d403c2731 to your computer and use it in GitHub Desktop.
Save nsollazzo/5895fdcec499359094be806d403c2731 to your computer and use it in GitHub Desktop.
Upgrade docker-compose
#!/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