summaryrefslogtreecommitdiff
path: root/cmd/podman/images/pull.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-11-23 09:50:26 -0500
committerGitHub <noreply@github.com>2021-11-23 09:50:26 -0500
commitee612806655d0d0a0a3d2a782a000ea5c6b08f33 (patch)
tree6a5ef0988a7642d83c0e7d095f89f552cccc8551 /cmd/podman/images/pull.go
parent9e07cb17a92dd24df8053193e1e047f211a72a54 (diff)
parent21629b0501c62a991eef536765b7320bc2d45763 (diff)
downloadpodman-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/images/pull.go')
-rw-r--r--cmd/podman/images/pull.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/podman/images/pull.go b/cmd/podman/images/pull.go
index a990d1626..2a5fd86cc 100644
--- a/cmd/podman/images/pull.go
+++ b/cmd/podman/images/pull.go
@@ -101,7 +101,6 @@ func pullFlags(cmd *cobra.Command) {
flags.Bool("disable-content-trust", false, "This is a Docker specific option and is a NOOP")
flags.BoolVarP(&pullOptions.Quiet, "quiet", "q", false, "Suppress output information when pulling images")
- flags.StringVar(&pullOptions.SignaturePolicy, "signature-policy", "", "`Pathname` of signature policy file (not usually used)")
flags.BoolVar(&pullOptions.TLSVerifyCLI, "tls-verify", true, "Require HTTPS and verify certificates when contacting registries")
authfileFlagName := "authfile"
@@ -113,7 +112,10 @@ func pullFlags(cmd *cobra.Command) {
flags.StringVar(&pullOptions.CertDir, certDirFlagName, "", "`Pathname` of a directory containing TLS certificates and keys")
_ = cmd.RegisterFlagCompletionFunc(certDirFlagName, completion.AutocompleteDefault)
}
- _ = flags.MarkHidden("signature-policy")
+ if !registry.IsRemote() {
+ flags.StringVar(&pullOptions.SignaturePolicy, "signature-policy", "", "`Pathname` of signature policy file (not usually used)")
+ _ = flags.MarkHidden("signature-policy")
+ }
}
// imagePull is implement the command for pulling images.