How I shrunk a Docker image by 98.8% – featuring fanotify

Some weeks ago, I did an internal presentation on Docker. During the presentation, one of the ops asked an seemingly trivial question: Is there anything like a “diet program for Docker Images” ?

You can find a couple of pretty decent common-sense powered approach on the web like removing well known cache folders, temporary files, installing all superfluous packages and flatten layers if not the full image. There is also the -slim declination of the official language images.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis