From b5b8e7a116ccd8a9183c6661589b1c051fca17d9 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 28 Feb 2022 10:10:39 +0100 Subject: [PATCH] exclude com.docker.compose.image label from service hash Signed-off-by: Nicolas De Loof --- pkg/compose/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/build.go b/pkg/compose/build.go index bc3d61f1d..c9bb56e0b 100644 --- a/pkg/compose/build.go +++ b/pkg/compose/build.go @@ -141,7 +141,7 @@ func (s *composeService) ensureImagesExists(ctx context.Context, project *types. if project.Services[i].Labels == nil { project.Services[i].Labels = types.Labels{} } - project.Services[i].Labels[api.ImageDigestLabel] = digest + project.Services[i].CustomLabels[api.ImageDigestLabel] = digest project.Services[i].Image = image } }