فهرست منبع

Merge pull request #9214 from ndeloof/inconsistent_hash

exclude com.docker.compose.image label from service hash
Guillaume Lours 3 سال پیش
والد
کامیت
ec080f184a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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
 		}
 	}