diff options
author | Qi Wang <qiwan@redhat.com> | 2019-02-12 09:53:38 -0500 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2019-02-14 10:09:25 -0500 |
commit | a8b149b406e9565067c1f281e86071942123163e (patch) | |
tree | b90126b851ac1a1d240af386cc0e5ee3b041d64e /docs | |
parent | 112a5ab20cd6a07bcfcccadd0c0b851927a16f05 (diff) | |
download | podman-a8b149b406e9565067c1f281e86071942123163e.tar.gz podman-a8b149b406e9565067c1f281e86071942123163e.tar.bz2 podman-a8b149b406e9565067c1f281e86071942123163e.zip |
--password-stdin flag in `podman login`
Support --password-stdin flag, reads a password from STDIN and pass it to `podman login`.
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/podman-login.1.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/podman-login.1.md b/docs/podman-login.1.md index e72d1deca..3ac0e30ef 100644 --- a/docs/podman-login.1.md +++ b/docs/podman-login.1.md @@ -25,6 +25,10 @@ flag. The default path used is **${XDG\_RUNTIME_DIR}/containers/auth.json**. Password for registry +**--password-stdin** + +Take the password from stdin + **--username, -u** Username for registry @@ -86,6 +90,16 @@ $ podman login --cert-dir /etc/containers/certs.d/ -u foo -p bar localhost:5000 Login Succeeded! ``` +``` +$ podman login -u testuser --password-stdin < testpassword.txt docker.io +Login Succeeded! +``` + +``` +$ echo $testpassword | podman login -u testuser --password-stdin docker.io +Login Succeeded! +``` + ## SEE ALSO podman(1), podman-logout(1), crio(8) |