Remove unused container images
After upgrading, your system might have unused service images that are no longer needed. Deleting these unused images can free up disk space and clean up environments.
Important considerations
When you run sudo crictl rmi –prune, all dangling images are deleted from the container runtime managed by crictl.
Make sure the upgrade was successful before running the commands to remove unused images.
To remove unused images:
Check the current images on the system:
sudo crictl images
Delete the unused images:
sudo crictl rmi -prune
The specified images are are removed.