Fix default platform matcher when ctr import
Signed-off-by: Wang Xinwen <wxw0504@outlook.com>
This commit is contained in:
parent
40f26543bd
commit
710d987d29
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user