From 502d3a1fcb6e531d2dce143764cb559da1493dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Mon, 25 Jul 2022 14:49:41 +0200 Subject: [PATCH] containerd/load: Load all platforms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make it possible to load emptyfs which is amd64 only Signed-off-by: Paweł Gronowski --- daemon/containerd/image_exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/containerd/image_exporter.go b/daemon/containerd/image_exporter.go index 9a02269016..6423e3fb03 100644 --- a/daemon/containerd/image_exporter.go +++ b/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 {