To prune unused images within Docker, use the system prune command.
sudo docker system prune --all
This will prune all images – often freeing up considerable space.
Consolidated Notes From the Desk of Sean Davis.
Prune Unused Images from Docker
By Sean, 2024-02-22