Forrest logo
back to the podman tool

podman-rmi:tldr:2026d

podman-rmi: Force remove an image.
$ podman rmi --force ${image}
try on your machine

This command is used to remove a container image from the host system using the "podman" command-line tool.

Here's a breakdown of the command:

  • "podman": It is a command-line tool that manages containers and container images. It offers similar functionality to Docker.
  • "rmi": It is a short form of the "remove image" command. It is used to delete container images.
  • "--force": This flag is optional but useful. It forces the removal of an image, even if it is being used by running containers. Without this flag, the removal will fail if any containers are currently using the specified image.
  • "${image}": This is a placeholder that should be replaced with the name or ID of the container image you want to remove. Specify the correct image name or ID without the brackets.

So by running this command, you are instructing Podman to forcefully remove the specified container image from your system, regardless of whether it is being used by any running containers.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the podman tool