From da2e0ed4987d965d4ab5441fd497743fc3e31a9d Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 21 Nov 2024 20:05:41 +0800 Subject: [PATCH] podman-login: add page (#14915) Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/podman-login.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/common/podman-login.md diff --git a/pages/common/podman-login.md b/pages/common/podman-login.md new file mode 100644 index 000000000..26fd81253 --- /dev/null +++ b/pages/common/podman-login.md @@ -0,0 +1,17 @@ +# podman login + +> Log in to a container registry. +> Note: the default authfile path on Linux is `$XDG_RUNTIME_DIR/containers/auth.json`, which is usually stored in a `tmpfs` (in RAM). +> More information: . + +- Log in to a registry (non-persistent on Linux; persistent on Windows/macOS): + +`podman login {{registry.example.org}}` + +- Log in to a registry persistently on Linux: + +`podman login --authfile $HOME/.config/containers/auth.json {{registry.example.org}}` + +- Log in to an insecure (HTTP) registry: + +`podman login --tls-verify false {{registry.example.org}}`