Managing Docker images might become a bit of a painful
experience, especially when looking at your storages: very “simple”
images like node
end up quite fat and contribute to sucking up a good
chunck of your HDD.
At the same time, the most painful moment with Docker
images is, at least for me, when you want to pull
and run a brand new image, not available on your
machine (or production servers, not much difference):
you will need to wait until the whole image gets
downloaded before being able to play around with it1.
At the end of the day, one thing is clear: we’d like
to shrink images as much as possible.
Turns out, the easiest solution is, as often, the simplest one:
start small, end small.
There are plenty of resources on limiting the size of your images / containers,
but today I am going to start with this very simple approach.
Read on →