diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-11-23 09:50:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 09:50:26 -0500 |
commit | ee612806655d0d0a0a3d2a782a000ea5c6b08f33 (patch) | |
tree | 6a5ef0988a7642d83c0e7d095f89f552cccc8551 /cmd/podman/common | |
parent | 9e07cb17a92dd24df8053193e1e047f211a72a54 (diff) | |
parent | 21629b0501c62a991eef536765b7320bc2d45763 (diff) | |
download | podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.tar.gz podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.tar.bz2 podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.zip |
Merge pull request #12361 from rhatdan/remote
podman-remote does not support signature-policy
Diffstat (limited to 'cmd/podman/common')
-rw-r--r-- | cmd/podman/common/create.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go index d73fa653f..dad79348d 100644 --- a/cmd/podman/common/create.go +++ b/cmd/podman/common/create.go @@ -552,11 +552,6 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions, stopSignalFlagName := "stop-signal" createFlags.StringVar( - &cf.SignaturePolicy, - "signature-policy", "", - "`Pathname` of signature policy file (not usually used)", - ) - createFlags.StringVar( &cf.StopSignal, stopSignalFlagName, "", "Signal to stop a container. Default is SIGTERM", @@ -702,10 +697,16 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions, "Write the container process ID to the file") _ = cmd.RegisterFlagCompletionFunc(pidFileFlagName, completion.AutocompleteDefault) - _ = createFlags.MarkHidden("signature-policy") if registry.IsRemote() { _ = createFlags.MarkHidden("env-host") _ = createFlags.MarkHidden("http-proxy") + } else { + createFlags.StringVar( + &cf.SignaturePolicy, + "signature-policy", "", + "`Pathname` of signature policy file (not usually used)", + ) + _ = createFlags.MarkHidden("signature-policy") } createFlags.BoolVar( |