Last active
August 31, 2021 09:31
-
-
Save thijsvos/c4f3df5b9b4202774145666ebb473756 to your computer and use it in GitHub Desktop.
install script for 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 update -y | |
sudo apt install jq -y | |
DOCKER_COMPOSE_VERSION=$(curl --silent "https://api.github.com/repos/docker/compose/releases/latest" | jq -r '.tag_name') | |
sudo DEBIAN_FRONTEND=noninteractive curl -L "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
docker-compose version | |
# Usage: | |
# wget -O - https://gist.githubusercontent.com/thijsvos/c4f3df5b9b4202774145666ebb473756/raw/213e9a4838d7f6af414afa47eff69ff309ec165f/install.sh | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment