swarm_leave
Remove a node from the active Docker swarm, moving its service tasks to remaining nodes. To let a manager leave without breaking quorum, set the force option.
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 |