mirror of https://github.com/k3s-io/k3s
Import containerd images with all platforms
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>pull/2257/head
parent
fcaeebaa18
commit
a08e998bc5
|
@ -202,7 +202,7 @@ func preloadImages(ctx context.Context, cfg *config.Node) error {
|
|||
continue
|
||||
}
|
||||
}
|
||||
_, err = client.Import(ctxContainerD, imageReader)
|
||||
_, err = client.Import(ctxContainerD, imageReader, containerd.WithAllPlatforms(true))
|
||||
file.Close()
|
||||
if err != nil {
|
||||
logrus.Errorf("Unable to import %s: %v", filePath, err)
|
||||
|
|
Loading…
Reference in New Issue