remove all docker containers attached to an image code example Example: remove all images docker docker rmi $(docker images -a -q)