github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/docs/source/markdown/podman-image-inspect.1.md (about) 1 % podman-image-inspect(1) 2 3 ## NAME 4 podman\-image\-inspect - Display an image's configuration 5 6 ## SYNOPSIS 7 **podman image inspect** [*options*] *image* [*image* ...] 8 9 ## DESCRIPTION 10 11 This displays the low-level information on images identified by name or ID. By default, this will render 12 all results in a JSON array. If a format is specified, the given template will be executed for each result. 13 14 ## OPTIONS 15 16 #### **--format**, **-f**=*format* 17 18 Format the output using the given Go template. 19 The keys of the returned JSON can be used as the values for the --format flag (see examples below). 20 21 ## EXAMPLE 22 23 ``` 24 $ podman image inspect fedora 25 [ 26 { 27 "Id": "37e5619f4a8ca9dbc4d6c0ae7890625674a10dbcfb76201399e2aaddb40da17d", 28 "Digest": "sha256:1b0d4ddd99b1a8c8a80e885aafe6034c95f266da44ead992aab388e6aa91611a", 29 "RepoTags": [ 30 "registry.fedoraproject.org/fedora:latest" 31 ], 32 "RepoDigests": [ 33 "registry.fedoraproject.org/fedora@sha256:1b0d4ddd99b1a8c8a80e885aafe6034c95f266da44ead992aab388e6aa91611a", 34 "registry.fedoraproject.org/fedora@sha256:b5290db40008aae9272ad3a6bd8070ef7ecd547c3bef014b894c327960acc582" 35 ], 36 "Parent": "", 37 "Comment": "Created by Image Factory", 38 "Created": "2021-08-09T05:48:47Z", 39 "Config": { 40 "Env": [ 41 "DISTTAG=f34container", 42 "FGC=f34", 43 "container=oci" 44 ], 45 "Cmd": [ 46 "/bin/bash" 47 ], 48 "Labels": { 49 "license": "MIT", 50 "name": "fedora", 51 "vendor": "Fedora Project", 52 "version": "34" 53 } 54 }, 55 "Version": "1.10.1", 56 "Author": "", 57 "Architecture": "amd64", 58 "Os": "linux", 59 "Size": 183852302, 60 "VirtualSize": 183852302, 61 "GraphDriver": { 62 "Name": "overlay", 63 "Data": { 64 "UpperDir": "/home/dwalsh/.local/share/containers/storage/overlay/0203e243f1ca4b6bb49371ecd21363212467ec6d7d3fa9f324cd4e78cc6b5fa2/diff", 65 "WorkDir": "/home/dwalsh/.local/share/containers/storage/overlay/0203e243f1ca4b6bb49371ecd21363212467ec6d7d3fa9f324cd4e78cc6b5fa2/work" 66 } 67 }, 68 "RootFS": { 69 "Type": "layers", 70 "Layers": [ 71 "sha256:0203e243f1ca4b6bb49371ecd21363212467ec6d7d3fa9f324cd4e78cc6b5fa2" 72 ] 73 }, 74 "Labels": { 75 "license": "MIT", 76 "name": "fedora", 77 "vendor": "Fedora Project", 78 "version": "34" 79 }, 80 "Annotations": {}, 81 "ManifestType": "application/vnd.docker.distribution.manifest.v2+json", 82 "User": "", 83 "History": [ 84 { 85 "created": "2021-08-09T05:48:47Z", 86 "comment": "Created by Image Factory" 87 } 88 ], 89 "NamesHistory": [ 90 "registry.fedoraproject.org/fedora:latest" 91 ] 92 } 93 ] 94 ``` 95 96 ``` 97 $ podman image inspect --format '{{ .Id }}' fedora 98 37e5619f4a8ca9dbc4d6c0ae7890625674a10dbcfb76201399e2aaddb40da17d 99 ``` 100 101 ## SEE ALSO 102 **[podman(1)](podman.1.md)**, **[podman-image(1)](podman-image.1.md)**, **[podman-inspect(1)](podman-inspect.1.md)** 103 104 ## HISTORY 105 Sep 2021, Originally compiled by Dan Walsh <dwalsh@redhat.com>