From 710d987d294913cf6a6808466837f4803ff9728f Mon Sep 17 00:00:00 2001 From: Wang Xinwen Date: Sun, 30 Jul 2023 19:37:32 +0800 Subject: [PATCH] Fix default platform matcher when ctr import Signed-off-by: Wang Xinwen --- cmd/ctr/commands/images/import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ctr/commands/images/import.go b/cmd/ctr/commands/images/import.go index 41845ecf7..2e3f3a6c3 100644 --- a/cmd/ctr/commands/images/import.go +++ b/cmd/ctr/commands/images/import.go @@ -267,7 +267,7 @@ If foobar.tar contains an OCI ref named "latest" and anonymous ref "sha256:deadb for _, img := range imgs { if platformMatcher == nil { // if platform not specified use default. - platformMatcher = platforms.Default() + platformMatcher = platforms.DefaultStrict() } image := containerd.NewImageWithPlatform(client, img, platformMatcher)