1podman-logout(1) General Commands Manual podman-logout(1)
2
3
4
6 podman-logout - Logout of a container registry
7
8
10 podman logout [options] registry
11
12
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 will be used. The path of the authentication file can be
18 overridden by the user by setting the authfile flag. The default path
19 used is ${XDG_RUNTIME_DIR}/containers/auth.json. For more details about
20 format and configurations of the auth,json file, please refer to con‐
21 tainers-auth.json(5) All the cached credentials can be removed by set‐
22 ting the 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
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, which is set using podman login. If the authorization
42 state is not found there, $HOME/.docker/config.json is checked, which
43 is set using docker login.
44
45
46 Note: There is also the option to override the default path of the au‐
47 thentication file by setting the REGISTRY_AUTH_FILE environment vari‐
48 able. This can be done with export REGISTRY_AUTH_FILE=path.
49
50
51 --help, -h
52 Print usage statement
53
54
56 $ podman logout docker.io
57 Remove login credentials for https://registry-1.docker.io/v2/
58
59
60
61 $ podman logout --authfile authdir/myauths.json docker.io
62 Remove login credentials for https://registry-1.docker.io/v2/
63
64
65
66 $ podman logout --all
67 Remove login credentials for all registries
68
69
70
72 podman(1), podman-login(1), containers-auth.json(5)
73
74
76 August 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.com
77 ⟨mailto:umohnani@redhat.com⟩
78
79
80
81 podman-logout(1)