Skip to content

Instantly share code, notes, and snippets.

@iantruslove
Last active August 29, 2015 13:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save iantruslove/9537509 to your computer and use it in GitHub Desktop.
Some docker command line magic to keep track of...

Remove all unlabelled images:

docker rmi $(docker images | grep "^<none>" | awk "{print $3}")

Remove all old containers:

docker rm `docker ps -notrunc -a -q`

Disable caching of build steps with docker build -no-cache ...

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