How to disable docker swarm mode?

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.


docker swarm leave should do the trick