docker remove container not used code example Example: docker remove not running containers docker container rm $(docker container ls –aq)