Skip to content

Instantly share code, notes, and snippets.

@vitaly
Last active August 29, 2015 14:22
Show Gist options
  • Save vitaly/c1acd4ef89a662c9e019 to your computer and use it in GitHub Desktop.
Save vitaly/c1acd4ef89a662c9e019 to your computer and use it in GitHub Desktop.
DOCKER="`which docker`"
function docker()
{
if [ -n "$1" ]; then
local cmd="$1"; shift
if which "docker-$cmd" > /dev/null; then
"docker-$cmd" "$@"
else
"$DOCKER" "$cmd" "$@"
fi
else
"$DOCKER"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment