Skip to content

Instantly share code, notes, and snippets.

@tx2z
Created January 12, 2019 23:40
Show Gist options
  • Save tx2z/9a4beee95b6e23ca46554f96010df68c to your computer and use it in GitHub Desktop.
Save tx2z/9a4beee95b6e23ca46554f96010df68c to your computer and use it in GitHub Desktop.
install docker-compose in coreos
#!/bin/bash
VERSION="1.23.2"
echo "Choose docker-compose version"
echo "Check https://github.com/docker/compose/releases"
read -p "Version ($VERSION): "
if ! [ -z $REPLY ]
then
VERSION=$REPLY
fi
sudo su <<EOF
mkdir /opt/
mkdir /opt/bin
curl -L "https://github.com/docker/compose/releases/download/$VERSION/docker-compose-$(uname -s)-$(uname -m)" -o /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
EOF
docker-compose -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment