From 256ec4997420b00448af28a4fd829e9c26c81ef5 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 13 Feb 2023 16:37:45 +0100 Subject: [PATCH] exclude unstable labels from config hash Signed-off-by: Nicolas De Loof --- pkg/compose/convergence.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/convergence.go b/pkg/compose/convergence.go index 8a0aad5b9..b473a00bd 100644 --- a/pkg/compose/convergence.go +++ b/pkg/compose/convergence.go @@ -424,7 +424,7 @@ func (s *composeService) recreateContainer(ctx context.Context, project *types.P } name := getContainerName(project.Name, service, number) tmpName := fmt.Sprintf("%s_%s", replaced.ID[:12], name) - service.Labels[api.ContainerReplaceLabel] = replaced.ID + service.CustomLabels[api.ContainerReplaceLabel] = replaced.ID created, err = s.createMobyContainer(ctx, project, service, tmpName, number, inherited, false, true, false, w) if err != nil { return created, err