Remove docker containers with the same name prefix in one command


docker ps -aq --filter name="NAMEHERE*" | xargs docker stop | xargs docker rm

Leave a Reply

Your email address will not be published. Required fields are marked *