Skip to content

Commit

Permalink
EnsureAllContent on convert
Browse files Browse the repository at this point in the history
Signed-off-by: apostasie <spam_blackhole@farcloser.world>
  • Loading branch information
apostasie committed Sep 25, 2024
1 parent 8ba7ce7 commit ef09d19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cmd/image/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ func Convert(ctx context.Context, client *containerd.Client, srcRawRef, targetRa
}
convertOpts = append(convertOpts, converter.WithPlatform(platMC))

// Ensure all the layers are here: https://github.com/containerd/nerdctl/issues/3425
err = EnsureAllContent(ctx, client, srcRawRef, options.GOptions)
if err != nil {
return err
}

estargz := options.Estargz
zstd := options.Zstd
zstdchunked := options.ZstdChunked
Expand Down

0 comments on commit ef09d19

Please sign in to comment.