Remove unused container images
After upgrading, your system might have unused service images that are no longer needed. Deleting these images can free up disk space and clean up environments by eliminating images that are no longer in use.
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.
Run these commands to remove unused images:
Check the current images on the system:
sudo crictl images
Delete the unused images:
sudo crictl rmi -prune