1podman-volume-exists(1) General Commands Manual podman-volume-exists(1)
2
3
4
6 podman-volume-exists - Check if the given volume exists
7
8
10 podman volume exists volume
11
12
14 podman volume exists checks if a volume exists. Podman returns an exit
15 code of 0 when the volume is found. A 1 is returned otherwise. An exit
16 code of 125 indicates there was another issue.
17
18
20 --help, -h
21 Print usage statement
22
23
25 Check if a volume called myvol exists (the volume does actually exist).
26
27 $ podman volume exists myvol
28 $ echo $?
29 0
30 $
31
32
33
34 Check if a volume called mysql exists (the volume does not actually ex‐
35 ist).
36
37 $ podman volume exists mysql
38 $ echo $?
39 1
40 $
41
42
43
45 podman(1), podman-volume(1)
46
47
49 January 2021, Originally compiled by Paul Holzinger
50 <paul.holzinger@web.de>
51
52
53
54 podman-volume-exists(1)