I want to remove all services I created in a Swarm:
To remove all the containers I used:
docker rm -f $(docker ps -a -q)
Is there a way to remove all the service with one line ?
I don't have a stack:
so docker stack rm STACK_NAME
won't work.
The same solution exists in services:
docker service rm $(docker service ls -q)