1podman-info(1) General Commands Manual podman-info(1)
2
3
4
6 podman-info - Displays 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 ociRuntime:
93 name: crun
94 package: crun-1.0-1.fc34.x86_64
95 path: /usr/bin/crun
96 version: |-
97 crun version 1.0
98 commit: 139dc6971e2f1d931af520188763e984d6cdfbf8
99 spec: 1.0.0
100 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
101 os: linux
102 remoteSocket:
103 path: /run/user/3267/podman/podman.sock
104 security:
105 apparmorEnabled: false
106 capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
107 rootless: true
108 seccompEnabled: true
109 seccompProfilePath: /usr/share/containers/seccomp.json
110 selinuxEnabled: true
111 serviceIsRemote: false
112 slirp4netns:
113 executable: /bin/slirp4netns
114 package: slirp4netns-1.1.12-2.fc34.x86_64
115 version: |-
116 slirp4netns version 1.1.12
117 commit: 7a104a101aa3278a2152351a082a6df71f57c9a3
118 libslirp: 4.4.0
119 SLIRP_CONFIG_VERSION_MAX: 3
120 libseccomp: 2.5.0
121 swapFree: 15687475200
122 swapTotal: 16886259712
123 uptime: 47h 15m 9.91s (Approximately 1.96 days)
124 plugins:
125 log:
126 - k8s-file
127 - none
128 - journald
129 network:
130 - bridge
131 - macvlan
132 volume:
133 - local
134 registries:
135 search:
136 - registry.fedoraproject.org
137 - registry.access.redhat.com
138 - docker.io
139 - quay.io
140 store:
141 configFile: /home/dwalsh/.config/containers/storage.conf
142 containerStore:
143 number: 9
144 paused: 0
145 running: 1
146 stopped: 8
147 graphDriverName: overlay
148 graphOptions: {}
149 graphRoot: /home/dwalsh/.local/share/containers/storage
150 graphRootAllocated: 510389125120
151 graphRootUsed: 129170714624
152 graphStatus:
153 Backing Filesystem: extfs
154 Native Overlay Diff: "true"
155 Supports d_type: "true"
156 Using metacopy: "false"
157 imageCopyTmpDir: /home/dwalsh/.local/share/containers/storage/tmp
158 imageStore:
159 number: 5
160 runRoot: /run/user/3267/containers
161 volumePath: /home/dwalsh/.local/share/containers/storage/volumes
162 version:
163 APIVersion: 4.0.0
164 Built: 1631648722
165 BuiltTime: Tue Sep 14 15:45:22 2021
166 GitCommit: 23677f92dd83e96d2bc8f0acb611865fb8b1a56d
167 GoVersion: go1.16.6
168 OsArch: linux/amd64
169 Version: 4.0.0
170
171
172
173 Run podman info --format json for a JSON formatted response:
174
175
176 $ podman info --format json
177 {
178 "host": {
179 "arch": "amd64",
180 "buildahVersion": "1.23.0",
181 "cgroupManager": "systemd",
182 "cgroupVersion": "v2",
183 "cgroupControllers": [],
184 "conmon": {
185 "package": "conmon-2.0.29-2.fc34.x86_64",
186 "path": "/usr/bin/conmon",
187 "version": "conmon version 2.0.29, commit: "
188 },
189 "cpus": 8,
190 "distribution": {
191 "distribution": "fedora",
192 "version": "34"
193 },
194 "eventLogger": "journald",
195 "hostname": "localhost.localdomain",
196 "idMappings": {
197 "gidmap": [
198 {
199 "container_id": 0,
200 "host_id": 3267,
201 "size": 1
202 },
203 {
204 "container_id": 1,
205 "host_id": 100000,
206 "size": 65536
207 }
208 ],
209 "uidmap": [
210 {
211 "container_id": 0,
212 "host_id": 3267,
213 "size": 1
214 },
215 {
216 "container_id": 1,
217 "host_id": 100000,
218 "size": 65536
219 }
220 ]
221 },
222 "kernel": "5.13.13-200.fc34.x86_64",
223 "logDriver": "journald",
224 "memFree": 1785753600,
225 "memTotal": 16401895424,
226 "ociRuntime": {
227 "name": "crun",
228 "package": "crun-1.0-1.fc34.x86_64",
229 "path": "/usr/bin/crun",
230 "version": "crun version 1.0\ncommit: 139dc6971e2f1d931af520188763e984d6cdfbf8\nspec: 1.0.0\n+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL"
231 },
232 "os": "linux",
233 "remoteSocket": {
234 "path": "/run/user/3267/podman/podman.sock"
235 },
236 "serviceIsRemote": false,
237 "security": {
238 "apparmorEnabled": false,
239 "capabilities": "CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT",
240 "rootless": true,
241 "seccompEnabled": true,
242 "seccompProfilePath": "/usr/share/containers/seccomp.json",
243 "selinuxEnabled": true
244 },
245 "slirp4netns": {
246 "executable": "/bin/slirp4netns",
247 "package": "slirp4netns-1.1.12-2.fc34.x86_64",
248 "version": "slirp4netns version 1.1.12\ncommit: 7a104a101aa3278a2152351a082a6df71f57c9a3\nlibslirp: 4.4.0\nSLIRP_CONFIG_VERSION_MAX: 3\nlibseccomp: 2.5.0"
249 },
250 "swapFree": 15687475200,
251 "swapTotal": 16886259712,
252 "uptime": "47h 17m 29.75s (Approximately 1.96 days)",
253 "linkmode": "dynamic"
254 },
255 "store": {
256 "configFile": "/home/dwalsh/.config/containers/storage.conf",
257 "containerStore": {
258 "number": 9,
259 "paused": 0,
260 "running": 1,
261 "stopped": 8
262 },
263 "graphDriverName": "overlay",
264 "graphOptions": {
265
266 },
267 "graphRoot": "/home/dwalsh/.local/share/containers/storage",
268 "graphStatus": {
269 "Backing Filesystem": "extfs",
270 "Native Overlay Diff": "true",
271 "Supports d_type": "true",
272 "Using metacopy": "false"
273 },
274 "imageCopyTmpDir": "/home/dwalsh/.local/share/containers/storage/tmp",
275 "imageStore": {
276 "number": 5
277 },
278 "runRoot": "/run/user/3267/containers",
279 "volumePath": "/home/dwalsh/.local/share/containers/storage/volumes"
280 },
281 "registries": {
282 "search": [
283 "registry.fedoraproject.org",
284 "registry.access.redhat.com",
285 "docker.io",
286 "quay.io"
287 ]
288 },
289 "plugins": {
290 "volume": [
291 "local"
292 ],
293 "network": [
294 "bridge",
295 "macvlan"
296 ],
297 "log": [
298 "k8s-file",
299 "none",
300 "journald"
301 ]
302 },
303 "version": {
304 "APIVersion": "4.0.0",
305 "Version": "4.0.0",
306 "GoVersion": "go1.16.6",
307 "GitCommit": "23677f92dd83e96d2bc8f0acb611865fb8b1a56d",
308 "BuiltTime": "Tue Sep 14 15:45:22 2021",
309 "Built": 1631648722,
310 "OsArch": "linux/amd64"
311 }
312 }
313
314
315
316 Extracting the list of container registries with a Go template
317 If shell completion is enabled, type podman info --format={{. and then
318 press [TAB] twice.
319
320
321 $ podman info --format={{.
322 {{.Host. {{.Plugins. {{.Registries}} {{.Store. {{.Version.
323
324
325
326 Press R [TAB] [ENTER] to print the registries information.
327
328
329 $ podman info -f {{.Registries}}
330 map[search:[registry.fedoraproject.org registry.access.redhat.com docker.io quay.io]]
331 $
332
333
334
335 The output still contains a map and an array. The map value can be ex‐
336 tracted with
337
338
339 $ podman info -f '{{index .Registries "search"}}'
340 [registry.fedoraproject.org registry.access.redhat.com docker.io quay.io]
341
342
343
344 The array can be printed as one entry per line
345
346
347 $ podman info -f '{{range index .Registries "search"}}{{.}}\n{{end}}'
348 registry.fedoraproject.org
349 registry.access.redhat.com
350 docker.io
351 quay.io
352
353
354
355
356 Extracting the list of container registries from JSON with jq
357 The command-line JSON processor jq can be used to extract the list of
358 container registries.
359
360
361 $ podman info -f json | jq '.registries["search"]'
362 [
363 "registry.fedoraproject.org",
364 "registry.access.redhat.com",
365 "docker.io",
366 "quay.io"
367 ]
368
369
370
371 The array can be printed as one entry per line
372
373
374 $ podman info -f json | jq -r '.registries["search"] | .[]'
375 registry.fedoraproject.org
376 registry.access.redhat.com
377 docker.io
378 quay.io
379
380
381
382 Note, the Go template struct fields start with upper case. When running
383 podman info or podman info --format=json, the same names start with
384 lower case.
385
386
388 podman(1), containers-registries.conf(5), containers-storage.conf(5)
389
390
391
392 podman-info(1)