Created
March 6, 2017 20:46
-
-
Save flybyray/03bd3c2c58bd8d78040a57f8e03f7113 to your computer and use it in GitHub Desktop.
Install docker tools
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
curl -sSL https://get.docker.com/ | sh | |
mkdir -p $HOME/bin | |
curl -sSL https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 > /tmp/jq && | |
chmod +x /tmp/jq && | |
cp /tmp/jq $HOME/bin/jq | |
export PATH="$HOME/bin:$PATH" | |
curl -sSL $(curl -sSL https://api.github.com/repos/docker/machine/releases/latest | jq -r ".assets[] | select(.name == \"docker-machine-`uname -s`-`uname -m`\") | .browser_download_url") >/tmp/docker-machine && | |
chmod +x /tmp/docker-machine && | |
cp /tmp/docker-machine $HOME/bin/docker-machine | |
curl -sSL $(curl -sSL https://api.github.com/repos/dhiltgen/docker-machine-kvm/releases/latest | jq -r ".assets[] | select(.name == \"docker-machine-driver-kvm\") | .browser_download_url") >/tmp/docker-machine-driver-kvm && | |
chmod +x /tmp/docker-machine-driver-kvm && | |
cp /tmp/docker-machine-driver-kvm $HOME/bin/docker-machine-driver-kvm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment