docker remove a dead container code example Example: docker remove all dead containers $ docker rm $(docker ps -a -q)