From 3607fcb553046b9a51c4b591ddf20236c628dc57 Mon Sep 17 00:00:00 2001 From: Suraj Deshmukh Date: Mon, 27 Nov 2017 15:08:21 +0530 Subject: Add flag --cert-dir and --tls-verify to kpod login This commit adds a mechanism to override the default certs dir by using command line flag `--cert-dir` for kpod login. Another flag `--tls-verify` is also added which lets you skip certificate validation when contacting container registry. Signed-off-by: Suraj Deshmukh Closes: #75 Approved by: rhatdan --- docs/podman-login.1.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs') diff --git a/docs/podman-login.1.md b/docs/podman-login.1.md index 8d8e688c1..2b136789e 100644 --- a/docs/podman-login.1.md +++ b/docs/podman-login.1.md @@ -37,6 +37,12 @@ Username for registry **--authfile** Path of the authentication file. Default is ${XDG_\RUNTIME\_DIR}/containers/auth.json +**--cert-dir** +Pathname of a directory containing TLS certificates and keys + +**--tls-verify** +Require HTTPS and verify certificates when contacting registries (default: true) + ## EXAMPLES ``` @@ -58,6 +64,16 @@ Password: Login Succeeded! ``` +``` +$ kpod login --tls-verify=false -u test -p test localhost:5000 +Login Succeeded! +``` + +``` +$ kpod login --cert-dir /etc/containers/certs.d/ -u foo -p bar localhost:5000 +Login Succeeded! +``` + ## SEE ALSO podman(1), podman-logout(1), crio(8), crio.conf(5) -- cgit v1.2.3-54-g00ecf