Created
February 4, 2015 22:35
-
-
Save aaronfeng/50e0dff969279d22b1cb to your computer and use it in GitHub Desktop.
zsh helper to work with docker-machine
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
docker-machine-wrapper() { | |
CONFIG_NAME="$1" | |
shift | |
docker $(docker-machine config "$CONFIG_NAME") $@ | |
} | |
alias dm="docker-machine-wrapper" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
dm dev pull foo/bar:latest
"dev" is the environment name