podman-logout(1)
💖 podman-logout(1) — the "bye bestie" command 💖
okay so real talk: this is the podman-logout page from the General Commands Manual, and it's literally just about logging out of a container registry. short page, big slay. let's get into it 🫶
✨ NAME ✨
podman-logout — log out of a container registry 👋
✨ SYNOPSIS ✨
podman logout [options] registry
✨ DESCRIPTION ✨
so what does podman logout actually do? it logs you out of a specified registry server by deleting the cached credentials stored in the auth.json file. bye credentials, it was fun 💅
if you don't specify the registry? no worries, it just uses the first registry under [registries.search] from registries.conf. defaults really said "i got you".
you can override the path of the authentication file yourself by setting the authfile flag. the default path it uses is:
${XDG_RUNTIME_DIR}/containers/auth.json
for more details about the format and configurations of the auth,json file, see containers-auth.json(5). and if you want to nuke all the cached credentials at once? just set the all flag and it's giving clean slate, no cap ✨
and here's the general shape of how you'd call it, global options included:
podman [GLOBAL OPTIONS]
podman logout [GLOBAL OPTIONS]
podman logout [OPTIONS] REGISTRY [GLOBAL OPTIONS]
✨ OPTIONS ✨
--all,-a— remove the cached credentials for all registries in the auth file. full reset energy 🧹--authfile=path— path of the authentication file. the default is${XDG_RUNTIME_DIR}/containers/auth.jsonon Linux, and$HOME/.config/containers/auth.jsonon Windows/macOS. this file gets created bypodman login. if the authorization state isn't found there,$HOME/.docker/config.jsongets checked instead, which is the one set usingdocker login.
📌 note bestie: there's also the option to override the default path of the authentication file by setting theREGISTRY_AUTH_FILEenvironment variable. you do that like this:export REGISTRY_AUTH_FILE=path.
--compat-auth-file=path— instead of updating the default credentials file, update the one at path, and use a Docker-compatible format. so it's the same idea but ✨docker-flavored✨--help,-h— print usage statement. the classic. the icon 👑
✨ EXAMPLES ✨
remove login credentials for the docker.io registry from the authentication file:
$ podman logout docker.io
remove login credentials for the docker.io registry from the authdir/myauths.json file:
$ podman logout --authfile authdir/myauths.json docker.io
remove login credentials for all registries:
$ podman logout --all
✨ SEE ALSO ✨
podman(1), podman-login(1), containers-auth.json(5)
✨ HISTORY ✨
August 2017, originally compiled by Urvashi Mohnani umohnani@redhat.com ⟨mailto:umohnani@redhat.com⟩ 💜
and that's the whole page, bestie 🌸 this was podman-logout(1) from the General Commands Manual, compiled back in August 2017 — still serving useful after all these years, periodt 🎀 go log out of something, you deserve the clean slate ✨🦋
📦 where this page comes from
- arch rolling: podman-docker 6.1.4-1 · Apache-2.0
- fedora 43: podman-docker 5:5.6.2-1.fc43 · Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman-docker 5:5.8.4-1.fc43
- fedora 43: podman-docker 5:5.8.8-1.fc43
- fedora 43: podman-docker 5:5.8.9-1.fc43 · Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.1-1.fc44 · Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.7-1.fc44
- fedora 44: podman-docker 5:5.8.9-1.fc44 · Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- ubuntu resolute: podman-docker 5.7.0+ds2-3build1 · Apache-2.0
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms