$ docker rm $(docker ps --filter status=exited -q) $ docker ps --filter status=exited -q | xargs docker rm