Browse Source

exclude unstable labels from config hash

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 2 years ago
parent
commit
256ec49974
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/compose/convergence.go

+ 1 - 1
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