github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-volume-exists.1.md (about) 1 % podman-volume-exists 1 2 3 ## NAME 4 podman\-volume\-exists - Check if the given volume exists 5 6 ## SYNOPSIS 7 **podman volume exists** *volume* 8 9 ## DESCRIPTION 10 **podman volume exists** checks if a volume exists. Podman returns an exit code 11 of `0` when the volume is found. A `1` is returned otherwise. An exit code of 12 `125` indicates there was another issue. 13 14 15 ## OPTIONS 16 17 #### **--help**, **-h** 18 19 Print usage statement 20 21 ## EXAMPLE 22 23 Check if a volume called `myvol` exists (the volume does actually exist). 24 ``` 25 $ podman volume exists myvol 26 $ echo $? 27 0 28 $ 29 ``` 30 31 Check if a volume called `mysql` exists (the volume does not actually exist). 32 ``` 33 $ podman volume exists mysql 34 $ echo $? 35 1 36 $ 37 ``` 38 39 ## SEE ALSO 40 **[podman(1)](podman.1.md)**, **[podman-volume(1)](podman-volume.1.md)** 41 42 ## HISTORY 43 January 2021, Originally compiled by Paul Holzinger `<paul.holzinger@web.de>`