docker clear stopped container every minute code example Example: docker remove not running containers docker container rm $(docker container ls –aq)