How to disable docker swarm mode?
docker swarm leave
should do the trick
docker swarm leave --force
docker network prune
1st command to stop the swarm and then remove all the networks. This should work.
docker swarm leave
is used when you want a worker node to leave from swarm , while docker swarm leave --force
is for a manager node to leave the swarm.