1podman-container-exists(1)() podman-container-exists(1)()
2
3
4
6 podman-container-exists - Check if a container exists in local storage
7
8
10 podman container exists [options] container
11
12
14 podman container exists checks if a container exists in local storage.
15 The ID or Name of the container may be used as input. Podman will
16 return an exit code of 0 when the container is found. A 1 will be
17 returned otherwise. An exit code of 125 indicates there was an issue
18 accessing the local storage.
19
20
22 --external=true|false
23 Check for external containers as well as Podman containers. These
24 external containers are generally created via other container technolā
25 ogy such as Buildah or CRI-O.
26
27
28 -h, --help Print usage statement
29
30
32 Check if an container called webclient exists in local storage (the
33 container does actually exist).
34
35
36 $ podman container exists webclient
37 $ echo $?
38 0
39
40
41
42 Check if an container called webbackend exists in local storage (the
43 container does not actually exist).
44
45
46 $ podman container exists webbackend
47 $ echo $?
48 1
49
50
51
52 Check if an container called ubi8-working-container created via Buildah
53 exists in local storage (the container does not actually exist).
54
55
56 $ podman container exists --external ubi8-working-container
57 $ echo $?
58 1
59
60
61
63 podman(1)
64
65
67 November 2018, Originally compiled by Brent Baude (bbaude at redhat dot
68 com)
69
70
71
72 podman-container-exists(1)()