Podman registry credentials are removed after reboot
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- podman
Issue
Podman registry credentials are removed after reboot and the user needs to login each time the server is rebooted
Resolution
- Whenever you login to a registry using
$ podman login
, the authentication token for that user is stored in${XDG_RUNTIME_DIR}/containers/auth.json
whereXDG_RUNTIME_DIR
defaults to a subdirectory of/run
which is an ephemeral directory whose contents will disappear on reboot.
To use a persistent location, explicitly specify: podman login --authfile $HOME/.config/containers/auth.json ...
For more information, see man containers-auth.json
.
Root Cause
The default for podman login
stores credentials in /run, a transient location that vanishes on reboot.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments