Created
September 5, 2019 22:02
-
-
Save darth-veitcher/2d86994a4a55f37cdf790f909f7226b1 to your computer and use it in GitHub Desktop.
Install docker-compose on CoreOS
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
#!/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