swarm_leave
Leave the current Docker swarm and reschedule service tasks to remaining nodes. Use force to allow a manager to leave without breaking raft quorum.
Instructions
Leave the current swarm.
The daemon's service tasks are rescheduled to the remaining nodes. A manager refuses to leave
without force=True, since leaving can break raft quorum. The departed node lingers as "down"
in node_list until a manager runs node_remove.
args: force - Force leave even if the node is a manager returns: bool - True after leaving the swarm
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |