Re:Optimizing Docker image size and why it matters
by yjftsjthsd-h on Thursday January 06, 2022 @05:36PM
(#29831473)
Doesn't that only work if you used the exact same base? If I build 2 images from debian:11 but one of them used debian:11 last month and one uses debian:11 today, I thought they end up not sharing a base layer because they're resolving debian:11 to different hashes and actually using the base image by exact image ID.
Re:Optimizing Docker image size and why it matters
by gui77aume on Friday January 07, 2022 @01:10AM
(#29835595)
Indeed. But the old debian and the new debian images may have a common layer.
Re:Optimizing Docker image size and why it matters
by PaulKeeble on Thursday January 06, 2022 @03:49PM
(#29829922)
Base images like alpine/debian/ubuntu get used by a lot of third party containers too so if you have multiple containers running on the same device they may in practice be very small until the base image gets an upgrade.
Re:Optimizing Docker image size and why it matters
by erik_seaberg on Thursday January 06, 2022 @04:03PM
(#29830119)
This. The article talks about
> Each layer in your image might have a leaner version that is sufficient for your needs.
when reusing a huge layer is cheaper than choosing a small layer that is not reused.
(This benefit compounds the more frequently you rebuild your app containers.)