buildah-images(1)

πŸ“¦
version 1.45.0 Β· 6 versions
, in centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing

πŸ’– buildah-images πŸ’–

okay bestie, listen up β€” this is buildah-images, living in the General Commands Manual section, and it's literally the command you run when you wanna see what images are chillin' in your local storage. no cap. πŸŽ€


✨ NAME ✨

buildah-images β€” list images in local storage. that's it, that's the whole job, and she does it flawlessly. πŸ‘‘


🌸 SYNOPSIS 🌸

buildah images [options] [image]

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: this bad boy displays all your locally stored images, showing off their names, sizes, created date and their IDs. main character energy fr fr. πŸ’…

And the created date? It's displayed in the time locale of the local machine β€” so it speaks your machine's language, not some random timezone's. iykyk. πŸ•βœ¨


🌈 OPTIONS 🌈

  • --all, -a β€” show all the images, including the intermediate images that came from a build. the hidden lore. 🫢
  • --digests β€” show the image digests. receipts, basically. 🧾
  • --filter, -f=[] β€” filter the output based on conditions provided (default is []). now let's get into which filters, because there are a lot and they all slay:
    • after,since=image β€” filter on images created since the given image.
    • before=image β€” filter on images created before the given image.
    • dangling=true|false β€” show dangling images. an image is considered to be dangling if it has no associated names and tags. it's giving orphan era. 😭
    • id=id β€” show the image with this specific ID.
    • intermediate=true|false β€” show intermediate images. an image is considered to be an intermediate image if it is dangling and has no children. (yes, the original says "indermediate" β€” we keep the typo energy, we just don't repeat it, bestie πŸ’€)
    • label=key[=value] β€” filter by image labels, by key and/or value.
    • readonly=true|false β€” show only read-only images, or Read/Write images. the default is to show both. Read/Only images can be configured by modifying the "additionalimagestores" in the /etc/containers/storage.conf file. πŸ“
    • reference=reference β€” show images matching the specified reference. wildcards are supported (e.g., "reference=fedora:3"). ✨
  • --format="TEMPLATE" β€” pretty-print images using a Go template. valid placeholders for the Go template are listed below, and every single one of them is iconic in her own way:
    • .Created β€” Creation date in epoch time
    • .CreatedAt β€” Creation date Pretty Formatted
    • .CreatedAtRaw β€” Creation date in raw format
    • .Digest β€” Image Digest
    • .ID β€” Image ID
    • .Name β€” Image Name
    • .ReadOnly β€” Indicates if image came from a R/O store
    • .Size β€” Image Size
    • .Tag β€” Image Tag
  • --history β€” display the image name history. the plot of the whole saga. πŸ“œ
  • --json β€” display the output in JSON format. for the machine besties. πŸ€–
  • --no-trunc β€” do not truncate output. show me everything, no edits, no cuts. πŸ”₯
  • --noheading, -n β€” omit the table headings from the listing of images. minimalism, we love her. πŸŽ€
  • --quiet, -q β€” displays only the image IDs. just the essentials, no small talk. πŸ’œ

🌟 EXAMPLE 🌟

here's a lil buffet of things you can literally type right now:

buildah images

buildah images fedora:latest

buildah images --json

buildah images --quiet

buildah images -q --noheading --no-trunc

buildah images --quiet fedora:latest

buildah images --filter dangling=true

buildah images --format "ImageID: {{.ID}}"

and here's what actually comes out, verbatim, so you know what you're getting into:

$ buildah images
REPOSITORY                        TAG        IMAGE ID       CREATED        SIZE
registry.access.redhat.com/ubi8   latest     53ce4390f2ad   3 weeks ago    233 MB
docker.io/library/busybox         latest     16ea53ea7c65   3 weeks ago    1.46 MB
quay.io/libpod/testimage          20210610   9f9ec7f2fdef   4 months ago   7.99 MB
# buildah images -a
IMAGE NAME                                               IMAGE TAG            IMAGE ID             CREATED AT             SIZE
registry.access.redhat.com/ubi8   latest     53ce4390f2ad   3 weeks ago    233 MB
<none>                                                   <none>               8c6e16890c2b         Jun 13, 2018 15:52     4.42 MB
localhost/test                                           latest               c0cfe75da054         Jun 13, 2018 15:52     4.42 MB
# buildah images --format '{{.ID}} {{.CreatedAtRaw}}'
3f53bb00af943dfdf815650be70c0fa7b426e56a66f5e3362b47a129d57d5991 2018-12-20 19:21:30.122610396 -0500 EST
8e09da8f6701d7cde1526d79e3123b0f1109b78d925dfe9f9bac6d59d702a390 2019-01-08 09:22:52.330623532 -0500 EST
# buildah images --format '{{.ID}} {{.Name}} {{.Digest}} {{.CreatedAt}} {{.Size}} {{.CreatedAtRaw}}'
3f53bb00af943dfdf815650be70c0fa7b426e56a66f5e3362b47a129d57d5991 docker.io/library/alpine sha256:3d2e482b82608d153a374df3357c0291589a61cc194ec4a9ca2381073a17f58e Dec 20, 2018 19:21 4.67 MB 2018-12-20 19:21:30.122610396 -0500 EST
8e09da8f6701d7cde1526d79e3123b0f1109b78d925dfe9f9bac6d59d702a390 <none> sha256:894532ec56e0205ce68ca7230b00c18aa3c8ee39fcdb310615c60e813057229c Jan 8, 2019 09:22 4.67 MB 2019-01-08 09:22:52.330623532 -0500 EST

πŸ‘€ SEE ALSO πŸ‘€

go read these next, bestie, they're the whole friend group:


🌈 that's the whole page! no details were harmed in the making of this rewrite β€” every flag, every filter, every placeholder, every example, exactly where it belongs. 🫢

okay that's a wrap, bestie!! this lil page comes to you from buildah, dated March 2017, and it's filed under buildah-images(1) β€” go list some images, you absolute icon πŸ’…βœ¨πŸ’–

πŸ“¦ where this page comes from