diff --git a/pkg/snapshotterutil/sociutil.go b/pkg/snapshotterutil/sociutil.go index 82e8773ce66..4f55c917eb1 100644 --- a/pkg/snapshotterutil/sociutil.go +++ b/pkg/snapshotterutil/sociutil.go @@ -117,6 +117,13 @@ func ConvertSociIndexV2(ctx context.Context, client *client.Client, srcRef strin sociCmd.Args = append(sociCmd.Args, "convert") + // The following option temporarily fix the image conversion regression in SOCI v0.12.0 + // https://github.com/awslabs/soci-snapshotter/issues/1789 + // TODO: remove after the bug is fixed in SOCI + if err := CheckSociVersion("0.12.0"); err == nil { + sociCmd.Args = append(sociCmd.Args, "--force") + } + if sOpts.AllPlatforms { sociCmd.Args = append(sociCmd.Args, "--all-platforms") } else if len(sOpts.Platforms) > 0 {