瀏覽代碼

containerd/load: Load all platforms

To make it possible to load emptyfs which is amd64 only

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Paweł Gronowski 2 年之前
父節點
當前提交
502d3a1fcb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/containerd/image_exporter.go

+ 1 - 1
daemon/containerd/image_exporter.go

@@ -41,7 +41,7 @@ func (i *ImageService) ExportImage(ctx context.Context, names []string, outStrea
 //
 // TODO(thaJeztah): produce JSON stream progress response and image events; see https://github.com/moby/moby/issues/43910
 func (i *ImageService) LoadImage(ctx context.Context, inTar io.ReadCloser, outStream io.Writer, quiet bool) error {
-	platform := platforms.DefaultStrict()
+	platform := platforms.All
 	imgs, err := i.client.Import(ctx, inTar, containerd.WithImportPlatform(platform))
 
 	if err != nil {