From 3f9f9508df849d5b41eae4f7fe5051554ba403f7 Mon Sep 17 00:00:00 2001 From: Yasin Turan Date: Tue, 1 Nov 2022 16:24:52 +0000 Subject: [PATCH] ctr export strictly match default platform Signed-off-by: Yasin Turan (cherry picked from commit 78ac0046a7af3ff5beeb53d56ba627ec0cf7b32d) Signed-off-by: Yasin Turan --- cmd/ctr/commands/images/export.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ctr/commands/images/export.go b/cmd/ctr/commands/images/export.go index 0a1394cb082d..5050ff4fd484 100644 --- a/cmd/ctr/commands/images/export.go +++ b/cmd/ctr/commands/images/export.go @@ -80,7 +80,7 @@ When '--all-platforms' is given all images in a manifest list must be available. } exportOpts = append(exportOpts, archive.WithPlatform(platforms.Ordered(all...))) } else { - exportOpts = append(exportOpts, archive.WithPlatform(platforms.Default())) + exportOpts = append(exportOpts, archive.WithPlatform(platforms.DefaultStrict())) } if context.Bool("all-platforms") {