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