From 02334f891a04b8f016c2163e39c16a6750c3c810 Mon Sep 17 00:00:00 2001 From: Lanzheng Liu Date: Thu, 27 Feb 2025 16:56:00 +0800 Subject: [PATCH] fix overlaybd snapshot.ref in refs.go --- cache/refs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/refs.go b/cache/refs.go index a9943b9c8411..45b68494f8d8 100644 --- a/cache/refs.go +++ b/cache/refs.go @@ -1371,7 +1371,7 @@ func (sr *immutableRef) unlazyLayer(ctx context.Context, dhs DescHandlers, pg pr if sr.cm.Snapshotter.Name() == "overlaybd" { err = sr.cm.Snapshotter.Prepare(ctx, key, parentID, - snapshots.WithLabels(map[string]string{"containerd.io/snapshot.ref": string(desc.Digest)})) + snapshots.WithLabels(map[string]string{"containerd.io/snapshot.ref": string(sr.getChainID())})) } else { err = sr.cm.Snapshotter.Prepare(ctx, key, parentID) }