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

NAME

6       podman-inspect - Display a container or image's configuration
7
8

SYNOPSIS

10       podman inspect [options] name [...]
11
12
13       podman image inspect [options] image
14
15
16       podman container inspect [options] container
17
18

DESCRIPTION

20       This  displays the low-level information on containers and images iden‐
21       tified by name or ID. By default, this will render  all  results  in  a
22       JSON  array.  If  the container and image have the same name, this will
23       return container JSON for unspecified type. If a format  is  specified,
24       the given template will be executed for each result.
25
26

OPTIONS

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

EXAMPLE

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

SEE ALSO

167       podman(1)
168
169

HISTORY

171       July  2017,  Originally  compiled  by   Dan   Walsh   dwalsh@redhat.com
172       ⟨mailto:dwalsh@redhat.com⟩
173
174
175
176                                                           podman-inspect(1)()
Impressum