Last active
April 25, 2023 20:48
-
-
Save JBGruber/db4de49ee106889b969a277f800c05b8 to your computer and use it in GitHub Desktop.
Update docker compose on Linux
This file contains hidden or 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
#! /usr/bin/bash | |
# query the newes version of docker-compose and add to a path folder | |
latest=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.tag_name') | |
sudo curl -L "https://github.com/docker/compose/releases/download/$latest/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
echo "$(docker-compose --version) installed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use with:
In one line: