podman-rmi(1)
π podman-rmi β bestie edition π
okay so this is the manual page for podman-rmi from the General Commands Manual section (that's section 1, bestie), and we're about to learn how to yeet images off your local storage. no cap. it's giving spring cleaning for your container images and honestly? obsessed. π
β¨ NAME β¨
podman-rmi β remove one or more locally stored images ποΈβ¨
πΈ SYNOPSIS πΈ
podman rmi [options] image [...]
podman image rm [options] image [...]
two ways to say the same thing, and both of them ate. π«Ά
π¦ DESCRIPTION π¦
So basically it removes one or more locally stored images. When you pass it an argument image, that image gets deleted β along with any of its dangling parent images. and what's a dangling image, you ask? it's an image that has no tag and is not referenced by another image. like it's just... floating there. orphaned. no tag, no referrer, no friends. we're freeing it. ποΈ
Note, bestie, listen up: if you wanna delete an image from a remote registry, use the skopeo delete command instead. and heads up β some registries straight up do not allow users to delete an image via a CLI remotely. not our fault, not our problem, we just report the facts. π
π OPTIONS π
--all,-aβ remove all the images in the local storage. every single one. total reset energy. π§Ήβ¨--force,-fβ this one makes Podman remove all the containers that are using the image before it removes the image from the system. it's not asking nicely, it's just doing it. π₯--ignore,-iβ if the image you named doesn't exist in local storage, this tells it to ignore that and not throw an error. no drama, no crying, no stack trace. π--no-pruneβ this option says do NOT remove the dangling parents of the image you specified. the parents stay. we respect the parents here. π
π EXAMPLES π
Remove an image by its short ID β short king behavior, iconic:
$ podman rmi c0ed59d05ff7
Remove an image and its associated containers β no survivors, periodt:
$ podman rmi --force imageID
Remove multiple images by their shortened IDs β a whole squad, gone:
$ podman rmi c4dfb1609ee2 93fd78260bd1 c0ed59d05ff7
Remove all images and containers β the nuclear option, and honestly? slay:
$ podman rmi -a -f
Remove an absent image with and without the --ignore flag β watch the difference, bestie:
$ podman rmi --ignore nothing
$ podman rmi nothing
Error: nothing: image not known
see how the first one just vibes and the second one yells at you? that's the --ignore difference right there. π
Remove an image but keep any parents of it:
podman rmi --no-prune d29200bf974d
Deleted: d29200bf974dbc48dc66c23c4031548531b6b5943e5f25ee7bda232e3b6b27f4
β Exit Status β
0β all specified images removed π1β one of the specified images did not exist, and no other failures2β one of the specified images has child images or is being used by a container π¬125β the command fails for any other reason π
π₯ SEE ALSO π₯
podman(1), skopeo-delete(1) β go read those too, iykyk πβ¨
π HISTORY π
March 2017, originally compiled by Dan Walsh dwalsh@redhat.com β¨mailto:dwalsh@redhat.comβ© β a legend, fr fr. π
and that's the whole page, bestie!! π«Ά this was the General Commands Manual entry for podman-rmi(1), and yes the date really does say March 2017 β vintage but still eating. go forth and remove responsibly, and remember: --force is powerful, so use it like a main character who thinks things through. πβ¨πΈ
π¦ where this page comes from
- alpine 3.24: podman-doc 5.8.9-r0 Β· Apache-2.0
- arch rolling: podman 6.1.4-1 Β· Apache-2.0
- centos-stream 10: podman 7:6.1.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: podman 6:5.8.5-2.el9 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman 5:5.6.2-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman 5:5.8.4-1.fc43
- fedora 43: podman 5:5.8.8-1.fc43
- fedora 43: podman 5:5.8.9-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman 5:5.8.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman 5:5.8.7-1.fc44
- fedora 44: podman 5:5.8.9-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- nixos 26.05: podman 5.8.9
- nixpkgs unstable: podman 6.1.4
- ubuntu resolute: podman 5.7.0+ds2-3build1 Β· Apache-2.0
- ubuntu stonking: podman 5.8.6+ds1-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms