1podman-info(1) General Commands Manual podman-info(1)
2
3
4
6 podman-info - Display Podman related system information
7
8
10 podman info [options]
11
12
13 podman system info [options]
14
15
17 Displays information pertinent to the host, current storage stats, con‐
18 figured container registries, and build of podman.
19
20
22 --format, -f=format
23 Change output format to "json" or a Go template.
24
25
26 ┌────────────────┬────────────────────────────┐
27 │Placeholder │ Info pertaining to ... │
28 ├────────────────┼────────────────────────────┤
29 │.Host ... │ ...the host on which pod‐ │
30 │ │ man is running │
31 ├────────────────┼────────────────────────────┤
32 │.Plugins ... │ ...external plugins │
33 ├────────────────┼────────────────────────────┤
34 │.Registries ... │ ...configured registries │
35 ├────────────────┼────────────────────────────┤
36 │.Store ... │ ...the storage driver and │
37 │ │ paths │
38 ├────────────────┼────────────────────────────┤
39 │.Version ... │ ...podman version │
40 └────────────────┴────────────────────────────┘
41
42 Each of the above branch out into further subfields, more than can rea‐
43 sonably be enumerated in this document.
44
45
47 Run podman info for a YAML formatted response:
48
49
50 $ podman info
51 host:
52 arch: amd64
53 buildahVersion: 1.23.0
54 cgroupControllers: []
55 cgroupManager: systemd
56 cgroupVersion: v2
57 conmon:
58 package: conmon-2.0.29-2.fc34.x86_64
59 path: /usr/bin/conmon
60 version: 'conmon version 2.0.29, commit: '
61 cpu_utilization:
62 idle_percent: 96.84
63 system_percent: 0.71
64 user_percent: 2.45
65 cpus: 8
66 distribution:
67 distribution: fedora
68 variant: workstation
69 version: "34"
70 eventLogger: journald
71 hostname: localhost.localdomain
72 idMappings:
73 gidmap:
74 - container_id: 0
75 host_id: 3267
76 size: 1
77 - container_id: 1
78 host_id: 100000
79 size: 65536
80 uidmap:
81 - container_id: 0
82 host_id: 3267
83 size: 1
84 - container_id: 1
85 host_id: 100000
86 size: 65536
87 kernel: 5.13.13-200.fc34.x86_64
88 linkmode: dynamic
89 logDriver: journald
90 memFree: 1833385984
91 memTotal: 16401895424
92 networkBackend: cni
93 networkBackendInfo:
94 backend: cni
95 dns:
96 package: podman-plugins-3.4.4-1.fc34.x86_64
97 path: /usr/libexec/cni/dnsname
98 version: |-
99 CNI dnsname plugin
100 version: 1.3.1
101 commit: unknown
102 package: |-
103 containernetworking-plugins-1.0.1-1.fc34.x86_64
104 podman-plugins-3.4.4-1.fc34.x86_64
105 path: /usr/libexec/cni
106 ociRuntime:
107 name: crun
108 package: crun-1.0-1.fc34.x86_64
109 path: /usr/bin/crun
110 version: |-
111 crun version 1.0
112 commit: 139dc6971e2f1d931af520188763e984d6cdfbf8
113 spec: 1.0.0
114 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
115 os: linux
116 pasta:
117 executable: /usr/bin/passt
118 package: passt-0^20221116.gace074c-1.fc34.x86_64
119 version: |
120 passt 0^20221116.gace074c-1.fc34.x86_64
121 Copyright Red Hat
122 GNU Affero GPL version 3 or later <https://www.gnu.org/licenses/agpl-3.0.html>
123 This is free software: you are free to change and redistribute it.
124 There is NO WARRANTY, to the extent permitted by law.
125 remoteSocket:
126 path: /run/user/3267/podman/podman.sock
127 security:
128 apparmorEnabled: false
129 capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID
130 rootless: true
131 seccompEnabled: true
132 seccompProfilePath: /usr/share/containers/seccomp.json
133 selinuxEnabled: true
134 serviceIsRemote: false
135 slirp4netns:
136 executable: /bin/slirp4netns
137 package: slirp4netns-1.1.12-2.fc34.x86_64
138 version: |-
139 slirp4netns version 1.1.12
140 commit: 7a104a101aa3278a2152351a082a6df71f57c9a3
141 libslirp: 4.4.0
142 SLIRP_CONFIG_VERSION_MAX: 3
143 libseccomp: 2.5.0
144 swapFree: 15687475200
145 swapTotal: 16886259712
146 uptime: 47h 15m 9.91s (Approximately 1.96 days)
147 plugins:
148 log:
149 - k8s-file
150 - none
151 - journald
152 network:
153 - bridge
154 - macvlan
155 volume:
156 - local
157 registries:
158 search:
159 - registry.fedoraproject.org
160 - registry.access.redhat.com
161 - docker.io
162 - quay.io
163 store:
164 configFile: /home/dwalsh/.config/containers/storage.conf
165 containerStore:
166 number: 9
167 paused: 0
168 running: 1
169 stopped: 8
170 graphDriverName: overlay
171 graphOptions: {}
172 graphRoot: /home/dwalsh/.local/share/containers/storage
173 graphRootAllocated: 510389125120
174 graphRootUsed: 129170714624
175 graphStatus:
176 Backing Filesystem: extfs
177 Native Overlay Diff: "true"
178 Supports d_type: "true"
179 Using metacopy: "false"
180 imageCopyTmpDir: /home/dwalsh/.local/share/containers/storage/tmp
181 imageStore:
182 number: 5
183 runRoot: /run/user/3267/containers
184 transientStore: false
185 volumePath: /home/dwalsh/.local/share/containers/storage/volumes
186 version:
187 APIVersion: 4.0.0
188 Built: 1631648722
189 BuiltTime: Tue Sep 14 15:45:22 2021
190 GitCommit: 23677f92dd83e96d2bc8f0acb611865fb8b1a56d
191 GoVersion: go1.16.6
192 OsArch: linux/amd64
193 Version: 4.0.0
194
195
196
197 Run podman info --format json for a JSON formatted response:
198
199
200 $ podman info --format json
201 {
202 "host": {
203 "arch": "amd64",
204 "buildahVersion": "1.23.0",
205 "cgroupManager": "systemd",
206 "cgroupVersion": "v2",
207 "cgroupControllers": [],
208 "conmon": {
209 "package": "conmon-2.0.29-2.fc34.x86_64",
210 "path": "/usr/bin/conmon",
211 "version": "conmon version 2.0.29, commit: "
212 },
213 "cpus": 8,
214 "distribution": {
215 "distribution": "fedora",
216 "version": "34"
217 },
218 "eventLogger": "journald",
219 "hostname": "localhost.localdomain",
220 "idMappings": {
221 "gidmap": [
222 {
223 "container_id": 0,
224 "host_id": 3267,
225 "size": 1
226 },
227 {
228 "container_id": 1,
229 "host_id": 100000,
230 "size": 65536
231 }
232 ],
233 "uidmap": [
234 {
235 "container_id": 0,
236 "host_id": 3267,
237 "size": 1
238 },
239 {
240 "container_id": 1,
241 "host_id": 100000,
242 "size": 65536
243 }
244 ]
245 },
246 "kernel": "5.13.13-200.fc34.x86_64",
247 "logDriver": "journald",
248 "memFree": 1785753600,
249 "memTotal": 16401895424,
250 "networkBackend": "cni",
251 "networkBackendInfo": {
252 "backend": "cni",
253 "package": "containernetworking-plugins-1.0.1-1.fc34.x86_64\npodman-plugins-3.4.4-1.fc34.x86_64",
254 "path": "/usr/libexec/cni",
255 "dns": {
256 "version": "CNI dnsname plugin\nversion: 1.3.1\ncommit: unknown",
257 "package": "podman-plugins-3.4.4-1.fc34.x86_64",
258 "path": "/usr/libexec/cni/dnsname"
259 }
260 },
261 "ociRuntime": {
262 "name": "crun",
263 "package": "crun-1.0-1.fc34.x86_64",
264 "path": "/usr/bin/crun",
265 "version": "crun version 1.0\ncommit: 139dc6971e2f1d931af520188763e984d6cdfbf8\nspec: 1.0.0\n+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL"
266 },
267 "os": "linux",
268 "remoteSocket": {
269 "path": "/run/user/3267/podman/podman.sock"
270 },
271 "serviceIsRemote": false,
272 "security": {
273 "apparmorEnabled": false,
274 "capabilities": "CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID",
275 "rootless": true,
276 "seccompEnabled": true,
277 "seccompProfilePath": "/usr/share/containers/seccomp.json",
278 "selinuxEnabled": true
279 },
280 "slirp4netns": {
281 "executable": "/bin/slirp4netns",
282 "package": "slirp4netns-1.1.12-2.fc34.x86_64",
283 "version": "slirp4netns version 1.1.12\ncommit: 7a104a101aa3278a2152351a082a6df71f57c9a3\nlibslirp: 4.4.0\nSLIRP_CONFIG_VERSION_MAX: 3\nlibseccomp: 2.5.0"
284 },
285 "pasta": {
286 "executable": "/usr/bin/passt",
287 "package": "passt-0^20221116.gace074c-1.fc34.x86_64",
288 "version": "passt 0^20221116.gace074c-1.fc34.x86_64\nCopyright Red Hat\nGNU Affero GPL version 3 or later \u003chttps://www.gnu.org/licenses/agpl-3.0.html\u003e\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n"
289 },
290 "swapFree": 15687475200,
291 "swapTotal": 16886259712,
292 "uptime": "47h 17m 29.75s (Approximately 1.96 days)",
293 "linkmode": "dynamic"
294 },
295 "store": {
296 "configFile": "/home/dwalsh/.config/containers/storage.conf",
297 "containerStore": {
298 "number": 9,
299 "paused": 0,
300 "running": 1,
301 "stopped": 8
302 },
303 "graphDriverName": "overlay",
304 "graphOptions": {
305
306 },
307 "graphRoot": "/home/dwalsh/.local/share/containers/storage",
308 "graphStatus": {
309 "Backing Filesystem": "extfs",
310 "Native Overlay Diff": "true",
311 "Supports d_type": "true",
312 "Using metacopy": "false"
313 },
314 "imageCopyTmpDir": "/home/dwalsh/.local/share/containers/storage/tmp",
315 "imageStore": {
316 "number": 5
317 },
318 "runRoot": "/run/user/3267/containers",
319 "volumePath": "/home/dwalsh/.local/share/containers/storage/volumes",
320 "transientStore": false
321 },
322 "registries": {
323 "search": [
324 "registry.fedoraproject.org",
325 "registry.access.redhat.com",
326 "docker.io",
327 "quay.io"
328 ]
329 },
330 "plugins": {
331 "volume": [
332 "local"
333 ],
334 "network": [
335 "bridge",
336 "macvlan"
337 ],
338 "log": [
339 "k8s-file",
340 "none",
341 "journald"
342 ]
343 },
344 "version": {
345 "APIVersion": "4.0.0",
346 "Version": "4.0.0",
347 "GoVersion": "go1.16.6",
348 "GitCommit": "23677f92dd83e96d2bc8f0acb611865fb8b1a56d",
349 "BuiltTime": "Tue Sep 14 15:45:22 2021",
350 "Built": 1631648722,
351 "OsArch": "linux/amd64"
352 }
353 }
354
355
356
357 Extracting the list of container registries with a Go template
358 If shell completion is enabled, type podman info --format={{. and then
359 press [TAB] twice.
360
361
362 $ podman info --format={{.
363 {{.Host. {{.Plugins. {{.Registries}} {{.Store. {{.Version.
364
365
366
367 Press R [TAB] [ENTER] to print the registries information.
368
369
370 $ podman info -f {{.Registries}}
371 map[search:[registry.fedoraproject.org registry.access.redhat.com docker.io quay.io]]
372 $
373
374
375
376 The output still contains a map and an array. The map value can be ex‐
377 tracted with
378
379
380 $ podman info -f '{{index .Registries "search"}}'
381 [registry.fedoraproject.org registry.access.redhat.com docker.io quay.io]
382
383
384
385 The array can be printed as one entry per line
386
387
388 $ podman info -f '{{range index .Registries "search"}}{{.}}\n{{end}}'
389 registry.fedoraproject.org
390 registry.access.redhat.com
391 docker.io
392 quay.io
393
394
395
396
397 Extracting the list of container registries from JSON with jq
398 The command-line JSON processor jq can be used to extract the list of
399 container registries.
400
401
402 $ podman info -f json | jq '.registries["search"]'
403 [
404 "registry.fedoraproject.org",
405 "registry.access.redhat.com",
406 "docker.io",
407 "quay.io"
408 ]
409
410
411
412 The array can be printed as one entry per line
413
414
415 $ podman info -f json | jq -r '.registries["search"] | .[]'
416 registry.fedoraproject.org
417 registry.access.redhat.com
418 docker.io
419 quay.io
420
421
422
423 Note, the Go template struct fields start with upper case. When running
424 podman info or podman info --format=json, the same names start with
425 lower case.
426
427
429 podman(1), containers-registries.conf(5), containers-storage.conf(5)
430
431
432
433 podman-info(1)