swarm_leave
Leave the current Docker swarm and reschedule service tasks to remaining nodes. Force mode lets managers exit 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 |