Skip to content

Instantly share code, notes, and snippets.

@dweomer
Last active August 29, 2015 14:27
Show Gist options
  • Save dweomer/1f506e6ef3e26d80ad60 to your computer and use it in GitHub Desktop.
Save dweomer/1f506e6ef3e26d80ad60 to your computer and use it in GitHub Desktop.
#!/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