Skip to content

Instantly share code, notes, and snippets.

@mattattui
Created February 8, 2016 17:58
Show Gist options
  • Save mattattui/03e8fa3eebf50f96bece to your computer and use it in GitHub Desktop.
Save mattattui/03e8fa3eebf50f96bece to your computer and use it in GitHub Desktop.
//…
if [ "$(docker-machine status dev)" == "Running" ]; then
echo "✅ Docker machine is running. Loading environment…"
eval $(docker-machine env dev)
else
echo "❌ Docker machine not started. Run 'docker-machine start dev' to start it."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment