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