On Sat 01 Jun 2024 15:58, Ludovic Courtès <l...@gnu.org> writes: >> I think it would be great if "guix pack -f docker" could avoid building >> all these identical layers again and again. Perhaps it would be >> possible to have a single derivation for each layer? This way we >> wouldn't have to recreate the same layer archives every time. > > That sounds nice in terms of saving CPU time. It’s less nice in terms > of disk usage: a single ‘guix pack -f docker’ run would populate the > store with roughly twice the size of the closure.
If the concern is CPU time, I would make sure you have switched to zstd or some other faster codec, via `guix pack -f docker -C zstd`. You probably already knew but if you haven't tried, it's quite surprising :) Andy