buildah-inspect(1)

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

πŸ’– buildah-inspect(1) πŸ’–

okay bestie, welcome to the General Commands Manual glow-up edition of buildah-inspect β€” this is the little page that tells you how to snoop on your containers, images and manifest lists and get the low-level tea. πŸ«–βœ¨


🌸 NAME 🌸

buildah-inspect β€” Display information about working containers or images or manifest lists.


✨ SYNOPSIS ✨

buildah inspect [options] [--] object

πŸ’… DESCRIPTION πŸ’…

So basically? It prints the low-level information on Buildah object(s) β€” think containers, images, manifest lists β€” and you point at them by name or ID. That's it, that's the whole vibe. πŸ‘‘

By default, it renders all the results in a JSON array. no cap.

Here's the lil gotcha you need to know: if the container, image, or manifest lists all have the same name, then this will return container JSON for an unspecified type. like, it just picks container energy. 🫠

And if a format is specified, the given template gets executed for each result. one template, all the results, periodt.


πŸŽ€ OPTIONS πŸŽ€

  • --format, -f template β€” Use template as a Go template when formatting the output.
Real talk: if you're using this option, you should already be familiar with the https://golang.org/pkg/text/template/ in the Go standard library, AND with the internals of Buildah's implementation. iykyk. this is not a beginner-beginner situation, bestie. πŸ’€
  • --type, -t container | image | manifest β€” Specify whether object is a container, image or a manifest list. pick one, tell it what you're looking at. πŸ¦‹

🌈 EXAMPLE 🌈

here's the moment you've been waiting for, the actual commands, copy them exactly fr fr:

buildah inspect containerID

buildah inspect --type container containerID

buildah inspect --type image imageID

buildah inspect --format '{{.OCIv1.Config.Env}}' alpine

look at that last one just casually pulling the env out of alpine with a Go template. iconic. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! πŸ¦‹ this lil manual came from the buildah crew and it's dated May 2017 β€” yes, she's been serving this info since 2017 and she still eats every single time. πŸ’– mwah, go inspect something. βœ¨πŸŽ€

πŸ“¦ where this page comes from