Last active
June 14, 2018 07:46
-
-
Save yukithm/21b5ea72219412e87240aad9aaf34459 to your computer and use it in GitHub Desktop.
docker subcommand wrapper
This file contains 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() { | |
case "$1" in | |
"compose") docker-compose "${@:2}" ;; | |
"machine") docker-machine "${@:2}" ;; | |
*) command docker "${@:1}" ;; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment