summaryrefslogtreecommitdiff
path: root/docs/source/markdown/podman-login.1.md
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2020-02-17 11:59:12 -0500
committerQi Wang <qiwan@redhat.com>2020-02-18 15:30:49 -0500
commit4c135017b228280e1dd2bd6693fdf2edb44b682a (patch)
treefa2699dc5742f54a1c7d8535df554deb2ad3cfce /docs/source/markdown/podman-login.1.md
parent5dacee93950a97ea14180bb86f21e462101fe5ea (diff)
downloadpodman-4c135017b228280e1dd2bd6693fdf2edb44b682a.tar.gz
podman-4c135017b228280e1dd2bd6693fdf2edb44b682a.tar.bz2
podman-4c135017b228280e1dd2bd6693fdf2edb44b682a.zip
fix mandatory parameter in login/logout
fix #5146 Insted of using a registry as mandatory parameter, this path allows podman to use the first registry from registries.conf. Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'docs/source/markdown/podman-login.1.md')
-rw-r--r--docs/source/markdown/podman-login.1.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/source/markdown/podman-login.1.md b/docs/source/markdown/podman-login.1.md
index 8a84d359d..a69b311eb 100644
--- a/docs/source/markdown/podman-login.1.md
+++ b/docs/source/markdown/podman-login.1.md
@@ -4,11 +4,12 @@
podman\-login - Login to a container registry
## SYNOPSIS
-**podman login** [*options*] *registry*
+**podman login** [*options*] [*registry*]
## DESCRIPTION
**podman login** logs into a specified registry server with the correct username
-and password. **podman login** reads in the username and password from STDIN.
+and password. If the registry is not specified, the first registry under [registries.search]
+from registries.conf will be used. **podman login** reads in the username and password from STDIN.
The username and password can also be set using the **username** and **password** flags.
The path of the authentication file can be specified by the user by setting the **authfile**
flag. The default path used is **${XDG\_RUNTIME\_DIR}/containers/auth.json**.
@@ -17,7 +18,7 @@ flag. The default path used is **${XDG\_RUNTIME\_DIR}/containers/auth.json**.
**podman login [GLOBAL OPTIONS]**
-**podman login [OPTIONS] REGISTRY [GLOBAL OPTIONS]**
+**podman login [OPTIONS] [REGISTRY] [GLOBAL OPTIONS]**
## OPTIONS