the usual
inconsistent at best
Clean up unused Docker image layers

If you build a lot of your own images, you’re going to accumulate dozens (or more) image layers that will be eating up your disk space. If your layers are small, this is no big deal, but if you’re building on VM images, this can quickly turn into Gb.

Here’s a gist to add to your ~/.bash_profile or equivalent Bourne-compatible shell. Run as needed.

Last modified on 2016-05-26