1podman-images(1) General Commands Manual podman-images(1)
2
3
4
6 podman-images - List images in local storage
7
8
10 podman images [options] [image]
11
12
13 podman image list [options] [image]
14
15
16 podman image ls [options] [image]
17
18
20 Displays locally stored images, their names, and their IDs.
21
22
24 --all, -a
25 Show all images (by default filter out the intermediate image layers).
26 The default is false.
27
28
29 --digests
30 Show image digests
31
32
33 --filter, -f=filter
34 Provide filter values.
35
36
37 The filters argument format is of key=value or key!=value. If there is
38 more than one filter, then pass multiple OPTIONS: --filter foo=bar
39 --filter bif=baz.
40
41
42 Supported filters:
43
44
45 ┌─────────────┬────────────────────────────┐
46 │Filter │ Description │
47 ├─────────────┼────────────────────────────┤
48 │id │ Filter by image ID. │
49 ├─────────────┼────────────────────────────┤
50 │before │ Filter by images created │
51 │ │ before the given IMAGE │
52 │ │ (name or tag). │
53 ├─────────────┼────────────────────────────┤
54 │containers │ Filter by images with a │
55 │ │ running container. │
56 ├─────────────┼────────────────────────────┤
57 │dangling │ Filter by dangling (un‐ │
58 │ │ used) images. │
59 ├─────────────┼────────────────────────────┤
60 │digest │ Filter by digest. │
61 ├─────────────┼────────────────────────────┤
62 │intermediate │ Filter by images that are │
63 │ │ dangling and have no chil‐ │
64 │ │ dren │
65 ├─────────────┼────────────────────────────┤
66 │label │ Filter by images with (or │
67 │ │ without, in the case of │
68 │ │ label!=[...] is used) the │
69 │ │ specified labels. │
70 ├─────────────┼────────────────────────────┤
71 │manifest │ Filter by images that are │
72 │ │ manifest lists. │
73 ├─────────────┼────────────────────────────┤
74 │readonly │ Filter by read-only or │
75 │ │ read/write images. │
76 ├─────────────┼────────────────────────────┤
77 │reference │ Filter by image name. │
78 ├─────────────┼────────────────────────────┤
79 │after/since │ Filter by images created │
80 │ │ after the given IMAGE │
81 │ │ (name or tag). │
82 ├─────────────┼────────────────────────────┤
83 │until │ Filter by images created │
84 │ │ until the given duration │
85 │ │ or time. │
86 └─────────────┴────────────────────────────┘
87
88 The id filter accepts the image ID string.
89
90
91 The before filter accepts formats: <image-name>[:<tag>], <image id> or
92 <image@digest>.
93
94
95 The containers filter shows images that have a running container based
96 on that image.
97
98
99 The dangling filter shows images that are taking up disk space and
100 serve no purpose. Dangling image is a file system layer that was used
101 in a previous build of an image and is no longer referenced by any im‐
102 age. They are denoted with the <none> tag, consume disk space and serve
103 no active purpose.
104
105
106 The digest filter accepts the image digest string.
107
108
109 The intermediate filter shows images that are dangling and have no
110 children.
111
112
113 The label filter accepts two formats. One is the label=key or la‐
114 bel=key=value, which shows images with the specified labels. The other
115 format is the label!=key or label!=key=value, which shows images with‐
116 out the specified labels.
117
118
119 The manifest filter shows images that are manifest lists.
120
121
122 The readonly filter shows, as a default, both read-only and read/write
123 images. Read-only images can be configured by modifying the addition‐
124 alimagestores in the /etc/containers/storage.conf file.
125
126
127 The reference filter accepts the pattern of an image reference <image-
128 name>[:<tag>].
129
130
131 The after or since filter accepts formats: <image-name>[:<tag>], <image
132 id> or <image@digest>.
133
134
135 The until filter accepts formats: golang duration, RFC3339 time, or a
136 Unix timestamp and shows all images that are created until that time.
137
138
139 --format=format
140 Change the default output format. This can be of a supported type like
141 'json' or a Go template. Valid placeholders for the Go template are
142 listed below:
143
144
145 ┌──────────────┬───────────────────────────────┐
146 │Placeholder │ Description │
147 ├──────────────┼───────────────────────────────┤
148 │.Containers │ Number of containers using │
149 │ │ this image │
150 ├──────────────┼───────────────────────────────┤
151 │.Created │ Elapsed time since the image │
152 │ │ was created │
153 ├──────────────┼───────────────────────────────┤
154 │.CreatedAt │ Time when the image was cre‐ │
155 │ │ ated, YYYY-MM-DD HH:MM:SS │
156 │ │ +nnnn │
157 ├──────────────┼───────────────────────────────┤
158 │.CreatedSince │ Same as .Created │
159 ├──────────────┼───────────────────────────────┤
160 │.CreatedTime │ Same as .CreatedAt │
161 ├──────────────┼───────────────────────────────┤
162 │.Dangling │ Same as .IsDangling │
163 ├──────────────┼───────────────────────────────┤
164 │.Digest │ Image digest │
165 ├──────────────┼───────────────────────────────┤
166 │.History │ History of the image layer │
167 ├──────────────┼───────────────────────────────┤
168 │.ID │ Image ID (truncated) │
169 ├──────────────┼───────────────────────────────┤
170 │.Id │ Image ID (full SHA) │
171 ├──────────────┼───────────────────────────────┤
172 │.IsDangling │ Is image dangling? │
173 │ │ (true/false) │
174 ├──────────────┼───────────────────────────────┤
175 │.IsReadOnly │ Is unage read-only? │
176 │ │ (true/false) │
177 ├──────────────┼───────────────────────────────┤
178 │.Labels │ map[] of labels │
179 ├──────────────┼───────────────────────────────┤
180 │.Names │ Image FQIN │
181 ├──────────────┼───────────────────────────────┤
182 │.ParentId │ Full SHA of parent image ID, │
183 │ │ or null (string) │
184 ├──────────────┼───────────────────────────────┤
185 │.ReadOnly │ Same as .IsReadOnly │
186 ├──────────────┼───────────────────────────────┤
187 │.RepoDigests │ map[] of zero or more │
188 │ │ repo/name@sha256:SHA strings │
189 ├──────────────┼───────────────────────────────┤
190 │.Repository │ Image repository │
191 ├──────────────┼───────────────────────────────┤
192 │.RepoTags │ map[] of zero or more FQIN │
193 │ │ strings for this image │
194 ├──────────────┼───────────────────────────────┤
195 │.SharedSize │ Always seems to be 0 │
196 ├──────────────┼───────────────────────────────┤
197 │.Size │ Size of layer on disk (human- │
198 │ │ friendly string) │
199 ├──────────────┼───────────────────────────────┤
200 │.Tag │ Image tag │
201 ├──────────────┼───────────────────────────────┤
202 │.VirtualSize │ Size of layer on disk (bytes) │
203 └──────────────┴───────────────────────────────┘
204
205 --history
206 Display the history of image names. If an image gets re-tagged or un‐
207 tagged, then the image name history gets prepended (latest image
208 first). This is especially useful when undoing a tag operation or an
209 image does not contain any name because it has been untagged.
210
211
212 --no-trunc
213 Do not truncate the output (default false).
214
215
216 --noheading, -n
217 Omit the table headings from the listing.
218
219
220 --quiet, -q
221 Lists only the image IDs.
222
223
224 --sort=sort
225 Sort by created, id, repository, size or tag (default: created)
226
227
229 $ podman images
230 REPOSITORY TAG IMAGE ID CREATED SIZE
231 quay.io/podman/stable latest e0b7dabc3352 22 hours ago 331 MB
232 docker.io/library/alpine latest 9c6f07244728 5 days ago 5.83 MB
233 registry.fedoraproject.org/fedora latest 2ecb6df95994 3 weeks ago 169 MB
234 quay.io/libpod/testimage 20220615 f26aa69bb3f3 2 months ago 8.4 MB
235
236
237
238 $ podman images stable
239 REPOSITORY TAG IMAGE ID CREATED SIZE
240 quay.io/podman/stable latest e0b7dabc3352 22 hours ago 331 MB
241
242
243
244 # podman image ls --quiet
245 e3d42bcaf643
246 ebb91b73692b
247 4526339ae51c
248
249
250
251 # podman images --noheading
252 docker.io/kubernetes/pause latest e3d42bcaf643 3 years ago 251 kB
253 <none> <none> ebb91b73692b 4 weeks ago 27.2 MB
254 docker.io/library/ubuntu latest 4526339ae51c 6 weeks ago 126 MB
255
256
257
258 # podman image list --no-trunc
259 REPOSITORY TAG IMAGE ID CREATED SIZE
260 docker.io/kubernetes/pause latest sha256:e3d42bcaf643097dd1bb0385658ae8cbe100a80f773555c44690d22c25d16b27 3 years ago 251 kB
261 <none> <none> sha256:ebb91b73692bd27890685846412ae338d13552165eacf7fcd5f139bfa9c2d6d9 4 weeks ago 27.2 MB
262 docker.io/library/ubuntu latest sha256:4526339ae51c3cdc97956a7a961c193c39dfc6bd9733b0d762a36c6881b5583a 6 weeks ago 126 MB
263
264
265
266 # podman images --format "table {{.ID}} {{.Repository}} {{.Tag}}"
267 IMAGE ID REPOSITORY TAG
268 e3d42bcaf643 docker.io/kubernetes/pause latest
269 ebb91b73692b <none> <none>
270 4526339ae51c docker.io/library/ubuntu latest
271
272
273
274 # podman images --filter dangling=true
275 REPOSITORY TAG IMAGE ID CREATED SIZE
276 <none> <none> ebb91b73692b 4 weeks ago 27.2 MB
277
278
279
280 # podman images --format json
281 [
282 {
283 "id": "e3d42bcaf643097dd1bb0385658ae8cbe100a80f773555c44690d22c25d16b27",
284 "names": [
285 "docker.io/kubernetes/pause:latest"
286 ],
287 "digest": "sha256:0aecf73ff86844324847883f2e916d3f6984c5fae3c2f23e91d66f549fe7d423",
288 "created": "2014-07-19T07:02:32.267701596Z",
289 "size": 250665
290 },
291 {
292 "id": "ebb91b73692bd27890685846412ae338d13552165eacf7fcd5f139bfa9c2d6d9",
293 "names": [
294 "\u003cnone\u003e"
295 ],
296 "digest": "sha256:ba7e4091d27e8114a205003ca6a768905c3395d961624a2c78873d9526461032",
297 "created": "2017-10-26T03:07:22.796184288Z",
298 "size": 27170520
299 },
300 {
301 "id": "4526339ae51c3cdc97956a7a961c193c39dfc6bd9733b0d762a36c6881b5583a",
302 "names": [
303 "docker.io/library/ubuntu:latest"
304 ],
305 "digest": "sha256:193f7734ddd68e0fb24ba9af8c2b673aecb0227b026871f8e932dab45add7753",
306 "created": "2017-10-10T20:59:05.10196344Z",
307 "size": 126085200
308 }
309 ]
310
311
312
313 # podman images --sort repository
314 REPOSITORY TAG IMAGE ID CREATED SIZE
315 <none> <none> 2460217d76fc About a minute ago 4.41 MB
316 docker.io/library/alpine latest 3fd9065eaf02 5 months ago 4.41 MB
317 localhost/myapp latest b2e0ad03474a About a minute ago 4.41 MB
318 registry.access.redhat.com/rhel7 latest 7a840db7f020 2 weeks ago 211 MB
319 registry.fedoraproject.org/fedora 27 801894bc0e43 6 weeks ago 246 MB
320
321
322
323 # podman images
324 REPOSITORY TAG IMAGE ID CREATED SIZE
325 localhost/test latest 18f0c080cd72 4 seconds ago 4.42 MB
326 docker.io/library/alpine latest 3fd9065eaf02 5 months ago 4.41 MB
327 # podman images -a
328 REPOSITORY TAG IMAGE ID CREATED SIZE
329 localhost/test latest 18f0c080cd72 6 seconds ago 4.42 MB
330 <none> <none> 270e70dc54c0 7 seconds ago 4.42 MB
331 <none> <none> 4ed6fbe43414 8 seconds ago 4.41 MB
332 <none> <none> 6b0df8e71508 8 seconds ago 4.41 MB
333 docker.io/library/alpine latest 3fd9065eaf02 5 months ago 4.41 MB
334
335
336
338 podman(1), containers-storage.conf(5)
339
340
342 March 2017, Originally compiled by Dan Walsh <dwalsh@redhat.com>
343
344
345
346 podman-images(1)