1podman-logout(1) General Commands Manual podman-logout(1)
2
3
4
6 podman-logout - Log out 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 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
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 --help, -h
53 Print usage statement
54
55
57 $ podman logout docker.io
58 Remove login credentials for https://registry-1.docker.io/v2/
59
60
61
62 $ podman logout --authfile authdir/myauths.json docker.io
63 Remove login credentials for https://registry-1.docker.io/v2/
64
65
66
67 $ podman logout --all
68 Remove login credentials for all registries
69
70
71
73 podman(1), podman-login(1), containers-auth.json(5)
74
75
77 August 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.com
78 ⟨mailto:umohnani@redhat.com⟩
79
80
81
82 podman-logout(1)