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