Skip to content

Instantly share code, notes, and snippets.

@Genki-S
Created June 2, 2015 23:57
Show Gist options
  • Save Genki-S/37aff8bff273e8f0e80c to your computer and use it in GitHub Desktop.
Save Genki-S/37aff8bff273e8f0e80c to your computer and use it in GitHub Desktop.
boot2docker wrapper
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