Created
October 8, 2018 16:19
This file contains hidden or 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
function docker() { | |
command docker info 2>&- 1>&- | |
if [[ $? -eq 1 ]]; then | |
echo "-- Loading docker configuration - this may take a few seconds..." | |
eval $(docker-machine env default) | |
fi | |
command docker $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment