Skip to content

Instantly share code, notes, and snippets.

@jrop
Created June 30, 2016 14:27
Show Gist options
  • Save jrop/0ad1c1996c0b4057d374fd2b646ec35b to your computer and use it in GitHub Desktop.
Save jrop/0ad1c1996c0b4057d374fd2b646ec35b to your computer and use it in GitHub Desktop.
#
# Docker
#
eval $(docker-machine env default)
alias dip="docker-machine ip default"
alias d="docker"
alias dm="docker-machine"
alias dclean="d images; echo ========; d images | grep '<none>' | tr -s ' ' | cut -d ' ' -f 3 | cut -d ':' -f 2 | xargs -n 1 echo docker rmi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment