kill all docker containers ubuntu code example Example: remove all containers docker docker rmi $(docker images -q)