You can also use --force , -f
Force removal of the image
If you use the -f flag and specify the image’s short or long ID, then
this command untags and removes all images that match the specified
ID.
docker rmi -f
Note: this command removes images being used by containers.