1podman-inspect(1)()                                        podman-inspect(1)()
2
3
4

NAME

6       podman-inspect  - Display a container, image, volume, network, or pod's
7       configuration
8
9

SYNOPSIS

11       podman inspect [options] name [...]
12
13

DESCRIPTION

15       This displays the low-level information on containers and images  iden‐
16       tified  by  name  or  ID. By default, this will render all results in a
17       JSON array. If the inspect type is all, the  order  of  inspection  is:
18       containers, images, volumes, network, pods.
19        So,  if  a container has the same name as an image, then the container
20       JSON will be returned, and so on.
21        If a format is specified, the given template will be executed for each
22       result.
23
24
25       For more inspection options, see also podman-container-inspect(1), pod‐
26       man-image-inspect(1), podman-network-inspect(1), podman-pod-inspect(1),
27       and podman-volume-inspect(1).
28
29

OPTIONS

31   --type, -t=type
32       Return  JSON for the specified type.  Type can be 'container', 'image',
33       'volume', 'network', 'pod', or 'all' (default:  all)  (Only  meaningful
34       when invoked as podman inspect)
35
36
37   --format, -f=format
38       Format  the  output  using  the given Go template.  The keys of the re‐
39       turned JSON can be used as the values for the --format flag (see  exam‐
40       ples below).
41
42
43   --latest, -l
44       Instead  of  providing  the  container name or ID, use the last created
45       container. If you use methods other than Podman to run containers  such
46       as  CRI-O,  the  last  started  container could be from either of those
47       methods.
48
49
50       This option can be used to inspect the latest  pod  created  when  used
51       with  --type  pod. (This option is not available with the remote Podman
52       client or when invoked as podman image inspect.)
53
54
55   --size, -s
56       In addition to normal output, display the total file size if  the  type
57       is a container.
58
59

EXAMPLE

61              # podman inspect fedora
62              [
63                  {
64                      "Id": "f0858ad3febdf45bb2e5501cb459affffacef081f79eaa436085c3b6d9bd46ca",
65                      "Digest": "sha256:d4f7df6b691d61af6cee7328f82f1d8afdef63bc38f58516858ae3045083924a",
66                      "RepoTags": [
67                          "docker.io/library/fedora:latest"
68                      ],
69                      "RepoDigests": [
70                          "docker.io/library/fedora@sha256:8fa60b88e2a7eac8460b9c0104b877f1aa0cea7fbc03c701b7e545dacccfb433",
71                          "docker.io/library/fedora@sha256:d4f7df6b691d61af6cee7328f82f1d8afdef63bc38f58516858ae3045083924a"
72                      ],
73                      "Parent": "",
74                      "Comment": "",
75                      "Created": "2019-10-29T03:23:37.695123423Z",
76                      "Config": {
77                          "Env": [
78                              "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
79                              "DISTTAG=f31-updates-candidatecontainer",
80                              "FGC=f31-updates-candidate",
81                              "FBR=f31-updates-candidate"
82                          ],
83                          "Cmd": [
84                              "/bin/bash"
85                          ],
86                          "Labels": {
87                              "maintainer": "Clement Verna \u003ccverna@fedoraproject.org\u003e"
88                          }
89                      },
90                      "Version": "18.06.1-ce",
91                      "Author": "",
92                      "Architecture": "amd64",
93                      "Os": "linux",
94                      "Size": 201096840,
95                      "VirtualSize": 201096840,
96                      "GraphDriver": {
97                          "Name": "overlay",
98                          "Data": {
99                              "UpperDir": "/home/user/.local/share/containers/storage/overlay/2ae3cee18c8ef9e0d448649747dab81c4f1ca2714a8c4550eff49574cab262c9/diff",
100                              "WorkDir": "/home/user/.local/share/containers/storage/overlay/2ae3cee18c8ef9e0d448649747dab81c4f1ca2714a8c4550eff49574cab262c9/work"
101                          }
102                      },
103                      "RootFS": {
104                          "Type": "layers",
105                          "Layers": [
106                              "sha256:2ae3cee18c8ef9e0d448649747dab81c4f1ca2714a8c4550eff49574cab262c9"
107                          ]
108                      },
109                      "Labels": {
110                          "maintainer": "Clement Verna \u003ccverna@fedoraproject.org\u003e"
111                      },
112                      "Annotations": {},
113                      "ManifestType": "application/vnd.docker.distribution.manifest.v2+json",
114                      "User": "",
115                      "History": [
116                          {
117                              "created": "2019-01-16T21:21:55.569693599Z",
118                              "created_by": "/bin/sh -c #(nop)  LABEL maintainer=Clement Verna \u003ccverna@fedoraproject.org\u003e",
119                              "empty_layer": true
120                          },
121                          {
122                              "created": "2019-09-27T21:21:07.784469821Z",
123                              "created_by": "/bin/sh -c #(nop)  ENV DISTTAG=f31-updates-candidatecontainer FGC=f31-updates-candidate FBR=f31-updates-candidate",
124                              "empty_layer": true
125                          },
126                          {
127                              "created": "2019-10-29T03:23:37.355187998Z",
128                              "created_by": "/bin/sh -c #(nop) ADD file:298f828afc880ccde9205fc4418435d5e696ad165e283f0530d0b1a74326d6dc in / "
129                          },
130                          {
131                              "created": "2019-10-29T03:23:37.695123423Z",
132                              "created_by": "/bin/sh -c #(nop)  CMD [\"/bin/bash\"]",
133                              "empty_layer": true
134                          }
135                      ],
136                      "NamesHistory": []
137                  }
138              ]
139
140
141
142              # podman inspect a04 --format "{{.ImageName}}"
143              fedora
144
145
146
147              # podman inspect a04 --format "{{.GraphDriver.Name}}"
148              overlay
149
150
151
152              # podman image inspect --format "size: {{.Size}}" alpine
153              size:   4405240
154
155
156
157              podman container inspect --latest --format {{.EffectiveCaps}}
158              [CAP_CHOWN CAP_DAC_OVERRIDE CAP_FSETID CAP_FOWNER CAP_MKNOD CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SETFCAP CAP_SETPCAP CAP_NET_BIND_SERVICE CAP_SYS_CHROOT CAP_KILL CAP_AUDIT_WRITE]
159
160
161
162              # podman inspect myPod --type pod --format "{{.Name}}"
163              myPod
164
165
166
167              # podman inspect myVolume --type volume --format "{{.Name}}"
168              myVolume
169
170
171
172              # podman inspect nyNetwork --type network --format "{{.name}}"
173              myNetwork
174
175
176

SEE ALSO

178       podman(1),podman-container-inspect(1),podman-image-inspect(1),podman-
179       network-inspect(1),podman-pod-inspect(1),podman-volume-inspect(1).
180
181

HISTORY

183       July  2017,  Originally  compiled  by   Dan   Walsh   dwalsh@redhat.com
184       ⟨mailto:dwalsh@redhat.com⟩
185
186
187
188                                                           podman-inspect(1)()
Impressum