Skip to content

Instantly share code, notes, and snippets.

@jeanlaurent
Last active October 12, 2015 13:56
Show Gist options
  • Save jeanlaurent/b98715a64929d3f5756d to your computer and use it in GitHub Desktop.
Save jeanlaurent/b98715a64929d3f5756d to your computer and use it in GitHub Desktop.
# Docker
isMachineUp=$(docker-machine status default)
if [ $isMachineUp == "Stopped" ]; then
printf "CTRL-C now, to prevent starting default docker machine\n"
read -t 3 -p ""
docker-machine start default
fi
eval $(docker-machine env default)
echo "Active docker machine is $(docker-machine active)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment