Skip to content

Instantly share code, notes, and snippets.

@rdhyee
Created February 6, 2015 21:48
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 rdhyee/db6d038ff48f0bbad756 to your computer and use it in GitHub Desktop.
Save rdhyee/db6d038ff48f0bbad756 to your computer and use it in GitHub Desktop.
docker related alias for working with boot2docker or docker in general (docker_rm, docker_rmi)
# docker aliases
alias docker_rmi='docker images -a -q -f "dangling=true" --no-trunc | xargs docker rmi'
alias docker_rm='docker ps -a -q --no-trunc | xargs docker rm'
alias docker_time='boot2docker ssh sudo ntpclient -s -h pool.ntp.org'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment