Commit 5f6b813c authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Add WithSkipMissing to not fail import on missing blobs

parent 811de8b8
...@@ -208,7 +208,7 @@ func preloadFile(ctx context.Context, cfg *config.Node, client *containerd.Clien ...@@ -208,7 +208,7 @@ func preloadFile(ctx context.Context, cfg *config.Node, client *containerd.Clien
defer imageReader.Close() defer imageReader.Close()
logrus.Infof("Importing images from %s", filePath) logrus.Infof("Importing images from %s", filePath)
images, err = client.Import(ctx, imageReader, containerd.WithAllPlatforms(true)) images, err = client.Import(ctx, imageReader, containerd.WithAllPlatforms(true), containerd.WithSkipMissing())
if err != nil { if err != nil {
return errors.Wrap(err, "failed to import images from "+filePath) return errors.Wrap(err, "failed to import images from "+filePath)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment