1 minute read

I’ve published recently a blog post listing the 10 things to avoid in docker containers. If you haven’t read this post yet, I strongly recommend you to do so. That blog post mentions 10 different recommendations that users should consider when dealing with docker containers. I’ve tried to make general recommendations and less opinionated about the specific use of the container, so no matter if you are running a database, a NodeJS application, or a Java EE application server, these recommendations still valid.

However the recommendation #3 - Don’t create large images, have caused many doubts when I mentioned “Don’t install unnecessary packages or run “updates” (yum update) that downloads many files to a new image layer”. Many people have wondered how a simple “yum update” could create a large image.

Today I published another post in Red Hat Developers Blog - Keep it small: a closer look at Docker image sizing that explains that recommendation, and explore the proper way to perform updates and keep the images small at the same time. Check it out, and register at Red Hat Developers website to have access to more related content for Developers.

Updated:

Leave a comment