exclude com.docker.compose.image label from service hash

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2022-02-28 10:10:39 +01:00
parent f7a6c3bc54
commit b5b8e7a116
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
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 { if project.Services[i].Labels == nil {
project.Services[i].Labels = types.Labels{} 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 project.Services[i].Image = image
} }
} }