1podman-info(1)              General Commands Manual             podman-info(1)
2
3
4

NAME

6       podman-info - Display Podman related system information
7
8

SYNOPSIS

10       podman info [options]
11
12
13       podman system info [options]
14
15

DESCRIPTION

17       Displays information pertinent to the host, current storage stats, con‐
18       figured container registries, and build of podman.
19
20

OPTIONS

22   --format, -f=format
23       Change output format to "json" or a Go template.
24
25
26       ┌────────────────┬────────────────────────────┐
27Placeholder     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

EXAMPLES

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

SEE ALSO

421       podman(1), containers-registries.conf(5), containers-storage.conf(5)
422
423
424
425                                                                podman-info(1)
Impressum