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
|
2018-01-29 12:30:53 +00:00
|
|
|
stored in the **auth.json** file. The path of the authentication file can be overridden by the user by setting the **authfile** flag.
|
2017-11-01 15:24:59 +00:00
|
|
|
The default path used is **${XDG\_RUNTIME_DIR}/containers/auth.json**.
|
|
|
|
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
|
|
|
|
|
|
|
|
**--authfile**
|
2018-06-14 15:44:39 +00:00
|
|
|
|
2019-05-11 11:26:05 +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`
|
|
|
|
|
2017-11-01 15:24:59 +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
|
2019-04-13 10:29:00 +00:00
|
|
|
podman(1), podman-login(1)
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## HISTORY
|
|
|
|
August 2017, Originally compiled by Urvashi Mohnani <umohnani@redhat.com>
|