From 18a0e144c282c6f529644d6e8ec815f3381d204c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Tue, 9 Jan 2024 13:16:56 +0100 Subject: [PATCH] c8d/getImageLabelByDigest: Fix misspelled `labels` check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It should be `labels.*` not `label.*`. Signed-off-by: Paweł Gronowski --- daemon/containerd/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/containerd/image.go b/daemon/containerd/image.go index 67595e682b..ff7d8609fd 100644 --- a/daemon/containerd/image.go +++ b/daemon/containerd/image.go @@ -363,7 +363,7 @@ func imageFamiliarName(img containerdimages.Image) string { // targeting the specified digest. // If images have different values, an errdefs.Conflict error will be returned. func (i *ImageService) getImageLabelByDigest(ctx context.Context, target digest.Digest, labelKey string) (string, error) { - imgs, err := i.client.ImageService().List(ctx, "target.digest=="+target.String()+",label."+labelKey) + imgs, err := i.client.ImageService().List(ctx, "target.digest=="+target.String()+",labels."+labelKey) if err != nil { return "", errdefs.System(err) }