3 ms·
I wish it was common practice to unbloat containers, but it seems needlessly hard to do and undervalued. Most containers are built with layers and removing fro
by m463 4y ago
I wish it was common practice to unbloat containers, but it seems needlessly hard to do and undervalued.
Most containers are built with layers and removing from one layer doesn't make things smaller.
older versions of docker don't help with squashing (except with experimental turned on)
I think you might be able to do with multi-stage builds and COPY
but... it's not valued
- PaulHoule 4y agoI think the model that you build a layer on top of a specific layer which is on top of another layer is part of the problem. If you could replace a layer without having to rebuild the layers that depend on that would make a difference.
- Timon3 4y agoI very much enjoy dive[1] for this purpose, though it doesn't seem to be maintained anymore... [1] https://github.com/wagoodman/dive https://github.com/wagoodman/dive