jlelse's Blog

Thoughts, stories and ideas

Reducing the size of Docker images

in 🔗 Links
Share  Subscribe 

Jérôme Petazzoni published a great article on the Ardan labs blog about reducing the size of Docker images. He compares different ways to package a binary into an image by using different base images and either dynamic or static linking. The conclusion is that although you can get really tiny images with SCRATCH, it is probably not worth it because it is more difficult to debug.

I often choose the Alpine image, because I can easily add the required libraries using apk, it’s quite small, and to debug, I can easily open a shell inside the container.



Jan-Lukas Else
You can also create an anonymous comment.