Skip to content

Commit ef09d19

Browse files
committed
EnsureAllContent on convert
Signed-off-by: apostasie <[email protected]>
1 parent 8ba7ce7 commit ef09d19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/cmd/image/convert.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ func Convert(ctx context.Context, client *containerd.Client, srcRawRef, targetRa
7575
}
7676
convertOpts = append(convertOpts, converter.WithPlatform(platMC))
7777

78+
// Ensure all the layers are here: https://github.com/containerd/nerdctl/issues/3425
79+
err = EnsureAllContent(ctx, client, srcRawRef, options.GOptions)
80+
if err != nil {
81+
return err
82+
}
83+
7884
estargz := options.Estargz
7985
zstd := options.Zstd
8086
zstdchunked := options.ZstdChunked

0 commit comments

Comments
 (0)