.nh
.TH podman-volume-exists 1
.SH NAME
.PP
podman-volume-exists - Check if the given volume exists

.SH SYNOPSIS
.PP
\fBpodman volume exists\fP \fIvolume\fP

.SH DESCRIPTION
.PP
\fBpodman volume exists\fP checks if a volume exists. Podman will return an exit code
of \fB\fC0\fR when the volume is found. A \fB\fC1\fR will be returned otherwise. An exit code of
\fB\fC125\fR indicates there was another issue.

.SH OPTIONS
.SS \fB--help\fP, \fB-h\fP
.PP
Print usage statement

.SH EXAMPLE
.PP
Check if a volume called \fB\fCmyvol\fR exists (the volume does actually exist).

.PP
.RS

.nf
$ podman volume exists myvol
$ echo $?
0
$

.fi
.RE

.PP
Check if a volume called \fB\fCmysql\fR exists (the volume does not actually exist).

.PP
.RS

.nf
$ podman volume exists mysql
$ echo $?
1
$

.fi
.RE

.SH SEE ALSO
.PP
\fBpodman(1)\fP, \fBpodman-volume(1)\fP

.SH HISTORY
.PP
January 2021, Originally compiled by Paul Holzinger \fB\fC<paul.holzinger@web.de>\fR
