Skip to content

Instantly share code, notes, and snippets.

@aaronfeng
Created February 4, 2015 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronfeng/50e0dff969279d22b1cb to your computer and use it in GitHub Desktop.
Save aaronfeng/50e0dff969279d22b1cb to your computer and use it in GitHub Desktop.
zsh helper to work with docker-machine
docker-machine-wrapper() {
CONFIG_NAME="$1"
shift
docker $(docker-machine config "$CONFIG_NAME") $@
}
alias dm="docker-machine-wrapper"
@aaronfeng
Copy link
Author

Example: dm dev pull foo/bar:latest
"dev" is the environment name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment