github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/docs/source/markdown/podman-logout.1.md (about) 1 % podman-logout(1) 2 3 ## NAME 4 podman\-logout - Logout of a container registry 5 6 ## SYNOPSIS 7 **podman logout** [*options*] *registry* 8 9 ## DESCRIPTION 10 **podman logout** logs out of a specified registry server by deleting the cached credentials 11 stored in the **auth.json** file. If the registry is not specified, the first registry under [registries.search] 12 from registries.conf will be used. The path of the authentication file can be overridden by the user by setting the **authfile** flag. 13 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) 14 All the cached credentials can be removed by setting the **all** flag. 15 16 **podman [GLOBAL OPTIONS]** 17 18 **podman logout [GLOBAL OPTIONS]** 19 20 **podman logout [OPTIONS] REGISTRY [GLOBAL OPTIONS]** 21 22 ## OPTIONS 23 24 #### **--authfile**=*path* 25 26 Path of the authentication file. Default is ${XDG\_RUNTIME\_DIR}/containers/auth.json. 27 28 Note: You can also override the default path of the authentication file by setting the REGISTRY\_AUTH\_FILE 29 environment variable. `export REGISTRY_AUTH_FILE=path` 30 31 #### **--all**, **-a** 32 33 Remove the cached credentials for all registries in the auth file 34 35 #### **--help**, **-h** 36 37 Print usage statement 38 39 ## EXAMPLES 40 41 ``` 42 $ podman logout docker.io 43 Remove login credentials for https://registry-1.docker.io/v2/ 44 ``` 45 46 ``` 47 $ podman logout --authfile authdir/myauths.json docker.io 48 Remove login credentials for https://registry-1.docker.io/v2/ 49 ``` 50 51 ``` 52 $ podman logout --all 53 Remove login credentials for all registries 54 ``` 55 56 ## SEE ALSO 57 podman(1), podman-login(1), containers-auth.json(5) 58 59 ## HISTORY 60 August 2017, Originally compiled by Urvashi Mohnani <umohnani@redhat.com>