Created
June 2, 2015 23:57
-
-
Save Genki-S/37aff8bff273e8f0e80c to your computer and use it in GitHub Desktop.
boot2docker wrapper
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() { | |
local st | |
st=$(boot2docker status) | |
if [ "$st" != "running" ]; then | |
boot2docker start | |
fi | |
if [ -z "$DOCKER_HOST" ]; then | |
$(boot2docker shellinit) | |
fi | |
command docker "$@" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment