Created
January 12, 2019 23:40
-
-
Save tx2z/9a4beee95b6e23ca46554f96010df68c to your computer and use it in GitHub Desktop.
install docker-compose in 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/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