buildah-inspect(1)
π 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,-ftemplate β 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,-tcontainer | 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
- centos-stream 10: buildah 2:1.45.0-2.el10 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- centos-stream 9: buildah 2:1.43.2-3.el9 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- debian trixie: buildah 1.39.3+ds1-1+b7 Β· Apache-2.0
- fedora 43: buildah 2:1.41.5-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: buildah 2:1.43.2-1.fc43
- fedora 43: buildah 2:1.43.4-1.fc43
- fedora 43: buildah 2:1.43.5-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: buildah 2:1.43.0-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: buildah 2:1.43.4-1.fc44
- fedora 44: buildah 2:1.43.5-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- opensuse-leap 16.0: buildah 1.39.5-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: buildah 1.39.5-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: buildah 1.39.5-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: buildah 1.39.5-160000.2.1 Β· Apache-2.0
- ubuntu noble: buildah 1.33.7+ds1-1 Β· Apache-2.0
- ubuntu noble: buildah 1.33.7+ds1-1ubuntu0.24.04.3 Β· Apache-2.0
- ubuntu questing: buildah 1.39.3+ds1-1syncable1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms