1podman-logout(1)            General Commands Manual           podman-logout(1)
2
3
4

NAME

6       podman-logout - Log out of a container registry
7
8

SYNOPSIS

10       podman logout [options] registry
11
12

DESCRIPTION

14       podman  logout  logs out of a specified registry server by deleting the
15       cached credentials stored in the auth.json file. If the registry is not
16       specified,  the  first  registry  under  [registries.search]  from reg‐
17       istries.conf is used. The path of the authentication file can be  over‐
18       ridden by the user by setting the authfile flag.  The default path used
19       is ${XDG_RUNTIME_DIR}/containers/auth.json. For more details about for‐
20       mat   and   configurations  of  the  auth,json  file,  see  containers-
21       auth.json(5) All the cached credentials can be removed by  setting  the
22       all flag.
23
24
25       podman [GLOBAL OPTIONS]
26
27
28       podman logout [GLOBAL OPTIONS]
29
30
31       podman logout [OPTIONS] REGISTRY [GLOBAL OPTIONS]
32
33

OPTIONS

35   --all, -a
36       Remove the cached credentials for all registries in the auth file
37
38
39   --authfile=path
40       Path of the authentication file. Default is ${XDG_RUNTIME_DIR}/contain‐
41       ers/auth.json on Linux, and $HOME/.config/containers/auth.json on  Win‐
42       dows/macOS.   The file is created by podman login. If the authorization
43       state is not found there, $HOME/.docker/config.json is  checked,  which
44       is set using docker login.
45
46
47       Note:  There is also the option to override the default path of the au‐
48       thentication file by setting the REGISTRY_AUTH_FILE  environment  vari‐
49       able. This can be done with export REGISTRY_AUTH_FILE=path.
50
51
52   --compat-auth-file=path
53       Instead  of  updating  the  default credentials file, update the one at
54       path, and use a Docker-compatible format.
55
56
57   --help, -h
58       Print usage statement
59
60

EXAMPLES

62       $ podman logout docker.io
63       Remove login credentials for https://registry-1.docker.io/v2/
64
65
66       $ podman logout --authfile authdir/myauths.json docker.io
67       Remove login credentials for https://registry-1.docker.io/v2/
68
69
70       $ podman logout --all
71       Remove login credentials for all registries
72
73
74

SEE ALSO

76       podman(1), podman-login(1), containers-auth.json(5)
77
78

HISTORY

80       August 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.com
81       ⟨mailto:umohnani@redhat.com⟩
82
83
84
85                                                              podman-logout(1)
Impressum