Last active
February 17, 2019 03:56
-
-
Save msuksong/1b7d750cfae6e48cca9c25024852a66c to your computer and use it in GitHub Desktop.
Install docker-compose on CoreOS
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/sh | |
# https://www.vultr.com/docs/installing-docker-compose-on-coreos | |
set -e | |
mkdir -p /opt/bin | |
export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1` | |
curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose | |
chmod +x /opt/bin/docker-compose | |
echo "docker-compose version $DOCKER_COMPOSE_VERSION has been installed: /opt/bin/docker-compose" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install docker-compose on CoreOS...
curl -s https://gist.githubusercontent.com/msuksong/1b7d750cfae6e48cca9c25024852a66c/raw | sudo bash -