diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-22 15:18:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 15:18:41 +0200 |
commit | 828fae12971c5a7b9807c8c4f8e029fe5d0ddc2f (patch) | |
tree | 76828348bec0fe4c58d8129cd635370ea0501e7a /cmd | |
parent | a49aa135af3b9af368cee861d2ef2884f54893f6 (diff) | |
parent | 33c31112fb44da455b8841b73a92980a07f42720 (diff) | |
download | podman-828fae12971c5a7b9807c8c4f8e029fe5d0ddc2f.tar.gz podman-828fae12971c5a7b9807c8c4f8e029fe5d0ddc2f.tar.bz2 podman-828fae12971c5a7b9807c8c4f8e029fe5d0ddc2f.zip |
Merge pull request #15870 from idleroamer/podman-save
podman-save: Add signature-policy flag
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/images/save.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/images/save.go b/cmd/podman/images/save.go index ecff0f841..426684d49 100644 --- a/cmd/podman/images/save.go +++ b/cmd/podman/images/save.go @@ -96,6 +96,11 @@ func saveFlags(cmd *cobra.Command) { flags.BoolVarP(&saveOpts.Quiet, "quiet", "q", false, "Suppress the output") flags.BoolVarP(&saveOpts.MultiImageArchive, "multi-image-archive", "m", containerConfig.Engine.MultiImageArchive, "Interpret additional arguments as images not tags and create a multi-image-archive (only for docker-archive)") + + if !registry.IsRemote() { + flags.StringVar(&saveOpts.SignaturePolicy, "signature-policy", "", "Path to a signature-policy file") + _ = flags.MarkHidden("signature-policy") + } } func save(cmd *cobra.Command, args []string) (finalErr error) { |