stop every running container docker code example Example: remove all containers docker docker rmi $(docker images -q)