1podman-container-exists(1)()                      podman-container-exists(1)()
2
3
4

NAME

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

SYNOPSIS

10       podman container exists [options] container
11
12

DESCRIPTION

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

OPTIONS

22   --external
23       Check  for  external containers as well as Podman containers. These ex‐
24       ternal containers are generally created via other container  technology
25       such as Buildah or CRI-O.
26       The default is false.
27
28
29       -h, --help
30
31
32       Prints usage statement.
33       The default is false.
34
35

EXAMPLES

37       Check if an container called "webclient" exists in local storage. Here,
38       the container does exist.
39
40
41              $ podman container exists webclient
42              $ echo $?
43              0
44
45
46
47       Check if an container called  "webbackend"  exists  in  local  storage.
48       Here, the container does not exist.
49
50
51              $ podman container exists webbackend
52              $ echo $?
53              1
54
55
56
57       Check if an container called "ubi8-working-container" created via Buil‐
58       dah exists in local storage. Here, the container does not exist.
59
60
61              $ podman container exists --external ubi8-working-container
62              $ echo $?
63              1
64
65
66

SEE ALSO

68       podman(1)
69
70

HISTORY

72       November 2018, Originally compiled  by  Brent  Baude  bbaude@redhat.com
73       ⟨mailto:bbaude@redhat.com⟩
74
75
76
77                                                  podman-container-exists(1)()
Impressum