Explorar o código

Merge pull request #9214 from ndeloof/inconsistent_hash

exclude com.docker.compose.image label from service hash
Guillaume Lours %!s(int64=3) %!d(string=hai) anos
pai
achega
ec080f184a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg/compose/build.go

+ 1 - 1
pkg/compose/build.go

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