Skip to content

Instantly share code, notes, and snippets.

@desbo
Created October 13, 2015 21:36
Show Gist options
  • Save desbo/1842093f640972bd5cc8 to your computer and use it in GitHub Desktop.
Save desbo/1842093f640972bd5cc8 to your computer and use it in GitHub Desktop.
#!/bin/bash
machine=$1
[ -z "$machine" ] && machine="default"
docker-machine start $machine
eval "$(docker-machine env $machine)"
echo "VM $machine running: $DOCKER_HOST"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment