Merge pull request #9214 from ndeloof/inconsistent_hash

exclude com.docker.compose.image label from service hash
This commit is contained in:
Guillaume Lours 2022-02-28 10:20:36 +01:00 committed by GitHub
commit ec080f184a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}