Created
July 28, 2015 18:50
-
-
Save parente/7a4a18c98e2a3f539642 to your computer and use it in GitHub Desktop.
zsh aliases for docker and docker-machine
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
# Short for docker-machine | |
dm () { | |
docker-machine $@ | |
} | |
# Switch docker pointer to another host (dmenv my_remote_host) | |
dmenv () { | |
eval "$(docker-machine env $1)" | |
} | |
# Short for docker | |
doc () { | |
docker $@ | |
} | |
# Always start by pointing to the local dev instance | |
dmenv dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment