summaryrefslogtreecommitdiff
path: root/cmd/podman/pull.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-04-11 01:06:56 -0700
committerGitHub <noreply@github.com>2019-04-11 01:06:56 -0700
commitf9ae2d48309f0d51644f0a7da8ab4b6845a9db56 (patch)
treeece54853a51393f4a6db8765808d6683c1b02a20 /cmd/podman/pull.go
parent6cd6eb6768bb936e87309c61d9cf131350274700 (diff)
parent7f10672486086c5a7a123bfa0d3edb23fa5b1c9f (diff)
downloadpodman-f9ae2d48309f0d51644f0a7da8ab4b6845a9db56.tar.gz
podman-f9ae2d48309f0d51644f0a7da8ab4b6845a9db56.tar.bz2
podman-f9ae2d48309f0d51644f0a7da8ab4b6845a9db56.zip
Merge pull request #2883 from baude/remoteclifixes
Initial remote flag clean up
Diffstat (limited to 'cmd/podman/pull.go')
-rw-r--r--cmd/podman/pull.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go
index 2aac28642..491d3a8c2 100644
--- a/cmd/podman/pull.go
+++ b/cmd/podman/pull.go
@@ -46,12 +46,16 @@ func init() {
pullCommand.SetUsageTemplate(UsageTemplate())
flags := pullCommand.Flags()
flags.BoolVar(&pullCommand.AllTags, "all-tags", false, "All tagged images inthe repository will be pulled")
- flags.StringVar(&pullCommand.Authfile, "authfile", "", "Path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json. Use REGISTRY_AUTH_FILE environment variable to override")
flags.StringVar(&pullCommand.CertDir, "cert-dir", "", "`Pathname` of a directory containing TLS certificates and keys")
flags.StringVar(&pullCommand.Creds, "creds", "", "`Credentials` (USERNAME:PASSWORD) to use for authenticating to a registry")
flags.BoolVarP(&pullCommand.Quiet, "quiet", "q", false, "Suppress output information when pulling images")
- flags.StringVar(&pullCommand.SignaturePolicy, "signature-policy", "", "`Pathname` of signature policy file (not usually used)")
- flags.BoolVar(&pullCommand.TlsVerify, "tls-verify", true, "Require HTTPS and verify certificates when contacting registries")
+
+ // Disabled flags for the remote client
+ if !remote {
+ flags.StringVar(&pullCommand.Authfile, "authfile", "", "Path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json. Use REGISTRY_AUTH_FILE environment variable to override")
+ flags.StringVar(&pullCommand.SignaturePolicy, "signature-policy", "", "`Pathname` of signature policy file (not usually used)")
+ flags.BoolVar(&pullCommand.TlsVerify, "tls-verify", true, "Require HTTPS and verify certificates when contacting registries")
+ }
}