buildah-rmi(1)
β¨ buildah-rmi β the "okay bestie, time to let that image go" page π
so this is a page from the General Commands Manual, and it's all about buildah-rmi. yeah. the glow-up-your-storage one. let's get into it π«Ά
πΈ NAME πΈ
buildah-rmi β removes one or more images. like, bye π¦
π SYNOPSIS π
buildah rmi [image ...]
π DESCRIPTION π
Removes one or more locally stored images. it's giving spring cleaning but for your disk, fr fr.
Passing an argument image deletes it β and not just it, okay? it also takes out any of its dangling (untagged) parent images. the whole situationship. gone. β¨
π LIMITATIONS π
okay so there are a few things you need to know before you start deleting, because this is where people get got:
- If the image was pushed to a directory path using the
'dir:'transport, thermicommand can not remove the image. nope. not happening. Instead, standard file system commands should be used. so like,rm. the classic. π - If
imageIDis a name, but does not include a registry name, buildah will attempt to find and remove the named image using the registry namelocalhost, if no such image is found, it will search for the intended image by attempting to expand the given name using the names of registries provided in the system's registries configuration file,registries.conf. she's doing detective work π - If the
imageIDrefers to a manifest list or image index, this command will not do what you expect! π¨ This command will remove the images associated with the manifest list or index (not the manifest list/image index itself). To remove that, use thebuildah manifest rmsubcommand instead. read that again bestie, i'm serious π
β¨ OPTIONS β¨
--all,-aβ All local images will be removed from the system that do not have containers using the image as a reference image. An image name or id cannot be provided when this option is used. and heads up: Read/Only images configured by modifying the"additionalimagestores"in the/etc/containers/storage.conffile, can not be removed. so don't come for those, they're protected π--force,-fβ This option will cause Buildah to remove all containers that are using the image before removing the image from the system. no survivors, no cap π₯--prune,-pβ All local images will be removed from the system that do not have a tag and do not have a child image pointing to them. An image name or id cannot be provided when this option is used. the untagged orphans?? yeah they gotta go πͺοΈ
π EXAMPLE π
here's the vibe, copy-paste ready:
buildah rmi imageID
buildah rmi --all
buildah rmi --all --force
buildah rmi --prune
buildah rmi --force imageID
buildah rmi imageID1 imageID2 imageID3
π Files π
registries.conf (/etc/containers/registries.conf)
registries.conf is the configuration file which specifies which container registries should be consulted when completing image names which do not include a registry or domain portion.
storage.conf (/etc/containers/storage.conf)
storage.conf is the storage configuration file for all tools using containers/storage
The storage configuration file specifies all of the available container storage options for tools using shared container storage.
π SEE ALSO π
buildah(1), containers-registries.conf(5), containers-storage.conf(5)
and that's the whole page, bestie π this one's from buildah, dated March 2017, and it's the buildah-rmi(1) page β go forth and delete responsibly, mwah πβ¨π
π¦ 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