Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 13:57
What would you like to do?
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