Skip to content

Instantly share code, notes, and snippets.

@thijsvos
Last active August 31, 2021 09:31
Show Gist options
  • Save thijsvos/c4f3df5b9b4202774145666ebb473756 to your computer and use it in GitHub Desktop.
Save thijsvos/c4f3df5b9b4202774145666ebb473756 to your computer and use it in GitHub Desktop.
install script for Docker Compose
#! /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