Deleting Docker images with grep
To delete old Docker images on a Linux server with names that contain a substring:
docker rmi $(docker images | grep 'substring-to-find-in-images')
This gives error-messages if images are used in running containers, but deletes the other images.
(via a user called Rambler on Stack Overflow)