mirror of
https://github.com/moby/buildkit.git
synced 2026-08-10 01:27:55 +00:00
In containerd, there is a size limit for label size (4096 chars). If an image has many layers (> (4096-43)/72 > 55), `containerd.io/snapshot/remote/stargz.layers` will hit the limit of label size and the remote snapshot preparation will fail. This commit fixes this by limiting the size of the label. Signed-off-by: ktock <ktokunaga.mail@gmail.com>