summaryrefslogtreecommitdiff
path: root/cmd/podman/common.go
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2018-10-09 09:26:47 -0400
committerQi Wang <qiwan@redhat.com>2018-10-12 10:05:14 -0400
commit88673a5fcfcedb3ab3f1039a46b3eba912f35e5c (patch)
tree59b86e95fccb21f26591177747adfcffa6816f85 /cmd/podman/common.go
parentda5c89497f9d6ee5cb6e826d7db7cca5686ab4f7 (diff)
downloadpodman-88673a5fcfcedb3ab3f1039a46b3eba912f35e5c.tar.gz
podman-88673a5fcfcedb3ab3f1039a46b3eba912f35e5c.tar.bz2
podman-88673a5fcfcedb3ab3f1039a46b3eba912f35e5c.zip
Support auth file environment variable & add change to man pages
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'cmd/podman/common.go')
-rw-r--r--cmd/podman/common.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go
index 1e7f8d4d8..e342659ed 100644
--- a/cmd/podman/common.go
+++ b/cmd/podman/common.go
@@ -458,3 +458,10 @@ func sortFlags(flags []cli.Flag) []cli.Flag {
})
return flags
}
+
+func getAuthFile(authfile string) string {
+ if authfile != "" {
+ return authfile
+ }
+ return os.Getenv("REGISTRY_AUTH_FILE")
+}