summaryrefslogtreecommitdiff
path: root/cmd/podman/shared/intermediate.go
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2019-08-06 11:22:18 -0400
committerQi Wang <qiwan@redhat.com>2019-08-09 12:27:32 -0400
commitcfdf891552704dce8020aa313f61bf85f5a6b072 (patch)
tree59e20810281dc7e1ec69910dc289081c769b9524 /cmd/podman/shared/intermediate.go
parent66ae8ec037f8e30d62bbb5f0213b7e35cafb4408 (diff)
downloadpodman-cfdf891552704dce8020aa313f61bf85f5a6b072.tar.gz
podman-cfdf891552704dce8020aa313f61bf85f5a6b072.tar.bz2
podman-cfdf891552704dce8020aa313f61bf85f5a6b072.zip
fix create&run getting --authfile from cli
Add flag `--authfile` to create and run so Podman can read authfile path from not only environemnt variable REGISTRY_AUTH_FILE but also CLI Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'cmd/podman/shared/intermediate.go')
-rw-r--r--cmd/podman/shared/intermediate.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/shared/intermediate.go b/cmd/podman/shared/intermediate.go
index 4062ac48a..3479876b4 100644
--- a/cmd/podman/shared/intermediate.go
+++ b/cmd/podman/shared/intermediate.go
@@ -366,6 +366,7 @@ func NewIntermediateLayer(c *cliconfig.PodmanCommand, remote bool) GenericCLIRes
m["add-host"] = newCRStringSlice(c, "add-host")
m["annotation"] = newCRStringSlice(c, "annotation")
m["attach"] = newCRStringSlice(c, "attach")
+ m["authfile"] = newCRString(c, "authfile")
m["blkio-weight"] = newCRString(c, "blkio-weight")
m["blkio-weight-device"] = newCRStringSlice(c, "blkio-weight-device")
m["cap-add"] = newCRStringSlice(c, "cap-add")