Remove Images

Using the Podman page, Cockpit administrators can remove a single unused image or remove all unused images on a host system. Typically, images are removed to free up disk space or to download newer versions of an image.

Note:

Images can't be removed when associated with a Podman container. All container image dependencies must be removed before removing an image. For more information about deleting container images, see Working With Container Images in the Install and Configure Cockpit-Podman.

What Do You Need?

Steps

Using the Cockpit web console, follow these steps to remove a single unused image or all unused images on a host system.

  1. In the Cockpit navigation pane, click Podman.

    The Podman page appears.

  2. In the Podman page, navigate to the Image section and expand the image listing (if not already expanded) by clicking Show images.
  3. To remove unused images, perform the one of the following:
    • Remove all unused images:
      1. Navigate to the upper top corner of the Podman page, click the actions menu [] and then select Prune unused images.

        The Prune unused images dialog appears.

      2. In the Prune unused images dialog, click Prune.

        The unused images are removed, and a refreshed image listing appears.

    • Remove a single unused image:
      1. In the Images table, click the row that contains the image you want to delete, and then find the actions [] menu in that same row and select Delete.

        The Delete [image file] dialog appears.

      2. In the Delete [image file] dialog, click Delete tagged image.

        The unused image is removed, and a refreshed image listing appears.