Skip to content

Instantly share code, notes, and snippets.

@darth-veitcher
Created September 5, 2019 22:02
Show Gist options
  • Save darth-veitcher/2d86994a4a55f37cdf790f909f7226b1 to your computer and use it in GitHub Desktop.
Save darth-veitcher/2d86994a4a55f37cdf790f909f7226b1 to your computer and use it in GitHub Desktop.
Install docker-compose on CoreOS
#!/bin/bash
# needs to be run with sudo permissions
mkdir -p /opt/bin
LATEST_URL=`curl -Ls -o /dev/null -w %{url_effective} https://github.com/docker/compose/releases/latest`
COMPOSE_VERSION=${LATEST_URL##*/}
DOWNLOAD_URL=https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m`
curl -L ${DOWNLOAD_URL} -o /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment