How to remove all Docker stacks at once

By June 7, 2019Docker

How to easily remove all Docker stacks that are running with a simple command.

docker stack rm $(docker stack ls | awk '{print $1}' | grep -v "NAME")

Leave a Reply