2018-08-30 08:41:19 +00:00
% podman-logout(1)
2017-11-01 15:24:59 +00:00
## NAME
2018-04-26 13:21:11 +00:00
podman\-logout - Logout of a container registry
2017-11-01 15:24:59 +00:00
## SYNOPSIS
2018-06-29 17:53:33 +00:00
**podman logout** [*options*] *registry*
2017-11-01 15:24:59 +00:00
## DESCRIPTION
2017-12-15 21:58:36 +00:00
**podman logout** logs out of a specified registry server by deleting the cached credentials
2020-02-17 16:59:12 +00:00
stored in the **auth.json** file. If the registry is not specified, the first registry under [registries.search]
from registries.conf will be used. The path of the authentication file can be overridden by the user by setting the **authfile** flag.
2020-09-10 17:42:00 +00:00
The default path used is ** ${XDG\_RUNTIME\_DIR}/containers/auth.json**. For more details about format and configurations of the auth,json file, please refer to containers-auth.json(5)
2017-11-01 15:24:59 +00:00
All the cached credentials can be removed by setting the **all** flag.
2017-12-15 21:58:36 +00:00
**podman [GLOBAL OPTIONS]**
2017-11-01 15:24:59 +00:00
2017-12-15 21:58:36 +00:00
**podman logout [GLOBAL OPTIONS]**
2017-11-01 15:24:59 +00:00
2017-12-15 21:58:36 +00:00
**podman logout [OPTIONS] REGISTRY [GLOBAL OPTIONS]**
2017-11-01 15:24:59 +00:00
## OPTIONS
2019-05-31 19:21:47 +00:00
**--authfile**=*path*
2018-06-14 15:44:39 +00:00
2019-07-01 18:35:13 +00:00
Path of the authentication file. Default is ${XDG\_RUNTIME\_DIR}/containers/auth.json (Not available for remote commands)
2017-11-01 15:24:59 +00:00
2018-10-09 13:26:47 +00:00
Note: You can also override the default path of the authentication file by setting the REGISTRY\_AUTH\_FILE
environment variable. `export REGISTRY_AUTH_FILE=path`
2019-05-31 19:21:47 +00:00
**--all**, ** -a**
2018-06-14 15:44:39 +00:00
2017-11-01 15:24:59 +00:00
Remove the cached credentials for all registries in the auth file
2018-06-29 17:53:33 +00:00
**--help**, ** -h**
Print usage statement
2017-11-01 15:24:59 +00:00
## EXAMPLES
```
2018-08-30 11:05:37 +00:00
$ podman logout docker.io
2017-11-01 15:24:59 +00:00
Remove login credentials for https://registry-1.docker.io/v2/
```
```
2018-08-30 11:05:37 +00:00
$ podman logout --authfile authdir/myauths.json docker.io
2017-11-01 15:24:59 +00:00
Remove login credentials for https://registry-1.docker.io/v2/
```
```
2018-08-30 11:05:37 +00:00
$ podman logout --all
2017-11-01 15:24:59 +00:00
Remove login credentials for all registries
```
## SEE ALSO
2020-09-10 17:42:00 +00:00
podman(1), podman-login(1), containers-auth.json(5)
2017-11-01 15:24:59 +00:00
## HISTORY
August 2017, Originally compiled by Urvashi Mohnani < umohnani @ redhat . com >