Skip to content

Instantly share code, notes, and snippets.

@iantruslove
Last active August 29, 2015 13:57
Show Gist options
  • Save iantruslove/9537509 to your computer and use it in GitHub Desktop.
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