docker delete top 5 containers code example Example: remove stopped containers $ docker rm $(docker ps -a -q)