Last active
October 12, 2015 13:56
-
-
Save jeanlaurent/b98715a64929d3f5756d 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
# 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