remove signature from OCI image

This commit is contained in:
Christian Goll
2023-01-11 15:41:13 +01:00
parent d9bfee0422
commit 534ae70ca4

View File

@@ -131,8 +131,9 @@ func (p *puller) Pull(ctx context.Context, uri, dst string) (err error) {
// copy to cache location
_, err = copy.Image(ctx, policyCtx, cacheRef, srcRef, &copy.Options{
ReportWriter: os.Stdout,
SourceCtx: p.sysCtx,
ReportWriter: os.Stdout,
SourceCtx: p.sysCtx,
RemoveSignatures: true,
})
if err != nil {
return err