mirror of https://github.com/docker/compose.git
exclude unstable labels from config hash
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
b19df5c96c
commit
256ec49974
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue