Skip to content

Instantly share code, notes, and snippets.

@leoleozhu
Created September 15, 2015 14:43
Show Gist options
  • Save leoleozhu/7b63843377574280d761 to your computer and use it in GitHub Desktop.
Save leoleozhu/7b63843377574280d761 to your computer and use it in GitHub Desktop.
VM=`docker-machine ls 2>/dev/null | sed -n 2p | awk '{print $1}'`
[ -z "$VM" ] && VM=default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment