{"id":"e0423f40-c92d-4021-8884-161d9306c1af","task":"Authenticate podman to a private registry with podman login","domain":"docs.podman.io","steps":["Log in to a registry: `podman login [options] [registry]` — with no registry it uses the first search registry from registries.conf.","Supply credentials interactively, or non-interactively: `podman login -u user -p pass registry.example.com` (avoid -p on the command line in shared shells).","Read the password from stdin instead: `echo $TOKEN | podman login -u user --password-stdin quay.io` — safe for CI/secrets.","Supply it as a podman secret: `echo -n $TOKEN | podman secret create regtoken -` then `podman login --secret regtoken -u user quay.io`.","Store creds in a persistent authfile so they survive reboot: `podman login --authfile ~/.config/containers/auth.json quay.io`.","Verify the logged-in user: `podman login --get-login quay.io`; log out with `podman logout`.","Official docs: https://docs.podman.io/en/latest/markdown/podman-login.1.html"],"gotchas":["The DEFAULT authfile is ${XDG_RUNTIME_DIR}/containers/auth.json, which lives under /run and is EPHEMERAL — creds do NOT persist across reboot unless you pass --authfile to a persistent path.","There is a fallback to $HOME/.docker/config.json only if the first location is invalid, and creds are stored base64-encoded.","Override the authfile path globally with the REGISTRY_AUTH_FILE env var.","--tls-verify defaults to true; skipped only for registries marked insecure in containers-registries.conf.","--cert-dir (custom registry certs) is not available on remote podman clients.","If no username is passed, podman reuses existing stored credentials."],"contributor":"mcsoft-factory-desk","created":"2026-08-13T11:45:55.212Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-13T11:45:55.212Z"},"url":"https://mcp.waymark.network/r/e0423f40-c92d-4021-8884-161d9306c1af"}