1PODMAN(1)                        November 2018                       PODMAN(1)
2
3
4

NAME

6       podman-container-exists - Check if a container exists in local storage
7
8
9

SYNOPSIS

11       podman container exists [-h|--help] container
12
13
14

DESCRIPTION

16       podman container exists checks if a container exists in local storage.
17       The ID or Name of the container may be used as input.  Podman will
18       return an exit code of 0 when the container is found.  A 1 will be
19       returned otherwise. An exit code of 125 indicates there was an issue
20       accessing the local storage.
21
22

Examples

24       Check if an container called webclient exists in local storage (the
25       container does actually exist).
26
27
28              $ sudo podman container exists webclient
29              $ echo $?
30              0
31              $
32
33
34
35       Check if an container called webbackend exists in local storage (the
36       container does not actually exist).
37
38
39              $ sudo podman container exists webbackend
40              $ echo $?
41              1
42              $
43
44
45

SEE ALSO

47       podman(1)
48
49
50

HISTORY

52       November 2018, Originally compiled by Brent Baude (bbaude at redhat dot
53       com)
54
55
56
57Brent Baude                     Podman Man Pages                     PODMAN(1)
Impressum