diff --git a/pkg/imgutil/commit/commit.go b/pkg/imgutil/commit/commit.go index 9d43cb31a3e..0320d95e895 100644 --- a/pkg/imgutil/commit/commit.go +++ b/pkg/imgutil/commit/commit.go @@ -169,6 +169,13 @@ func Commit(ctx context.Context, client *containerd.Client, container containerd return emptyDigest, fmt.Errorf("failed to create new image %s: %w", opts.Ref, err) } } + + // unpack the image to snapshotter + cimg := containerd.NewImage(client, img) + if err := cimg.Unpack(ctx, snName); err != nil { + return emptyDigest, err + } + return configDigest, nil }