Skip to content

Instantly share code, notes, and snippets.

@parente
Created July 28, 2015 18:50
Show Gist options
  • Save parente/7a4a18c98e2a3f539642 to your computer and use it in GitHub Desktop.
Save parente/7a4a18c98e2a3f539642 to your computer and use it in GitHub Desktop.
zsh aliases for docker and docker-machine
# 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