Forrest logo
back to the podman tool

podman-image:tldr:2c8bc

podman-image: Delete unused local Docker images.
$ podman image prune
try on your machine

The command "podman image prune" is used to remove unused images from the local image storage of Podman.

When you use Podman to pull or build images, they are stored locally on your system. Over time, these images can accumulate and take up storage space. The "podman image prune" command helps you clean up your local image storage by removing unnecessary or unused images.

Here's how it works:

  1. When you execute the "podman image prune" command, Podman checks all the images in the local storage.
  2. It then identifies images that are not being used by any containers or other images.
  3. These unused images are then deleted from the local storage, freeing up disk space.

It's important to note that the "podman image prune" command only removes images that are not being used. It retains images that are being used by running or paused containers, as well as those that are required by other images (layers). This ensures that you don't accidentally remove required images and break your containers.

To summarize, "podman image prune" is a useful command to clean up your local image storage by removing unnecessary or unused images, thus saving disk space.

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