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?
- The Cockpit web console must be installed and accessible.
For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.
- The Podman container tools must be installed on the host system. For information on how to install Podman, see Installing Podman and Related Utilities in Oracle Linux: Podman User's Guide.
- The Cockpit-Podman add-on application must be installed. For further information on how to configure the Cockpit web console to interact with Podman, see Install and Configure Cockpit-Podman.
- A copy of one or more images must appear in the Images section on the Podman page. For details on how to search and download images, see Search and Download New Images.
Steps
Using the Cockpit web console, follow these steps to remove a single unused image or all unused images on a host system.
- In the Cockpit navigation pane, click Podman.
The Podman page appears.
- In the Podman page, navigate to the Image section and expand the image listing (if not already expanded) by clicking Show images.
- To remove unused images, perform the one of the following:
- Remove all unused images:
- 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.
- In the Prune unused images dialog, click
Prune.
The unused images are removed, and a refreshed image listing appears.
- Navigate to the upper top corner of the Podman page, click the actions menu
[⋮] and then select Prune unused
images.
- Remove a single unused image:
- 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.
- In the Delete [image file] dialog, click
Delete tagged image.
The unused image is removed, and a refreshed image listing appears.
- 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.
- Remove all unused images: