Last active
August 29, 2015 14:27
-
-
Save dweomer/1f506e6ef3e26d80ad60 to your computer and use it in GitHub Desktop.
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 -x | |
export DOCKER_MACHINE_OS=$(uname -s | tr '[:upper:]' '[:lower:]') | |
export DOCKER_MACHINE_ARCH=$(uname -m | sed -e 's/x86_64/amd64/g') | |
export DOCKER_MACHINE_VERSION=${DOCKER_MACHINE_VERSION:-0.4.1} | |
sudo sh -xe << EOF | |
curl -sL https://github.com/docker/machine/releases/download/v${DOCKER_MACHINE_VERSION}/docker-machine_${DOCKER_MACHINE_OS}-${DOCKER_MACHINE_ARCH} > /usr/local/bin/docker-machine | |
chmod -v +x /usr/local/bin/docker-machine | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment