remove_node
Remove a node from a Docker swarm. Optionally force remove active or reachable nodes.
Instructions
Remove a node from the swarm.
A node should normally be drained (update_node with Availability "drain") and have left the
swarm first, so its tasks reschedule cleanly. Removing an active/reachable node requires force=True.
args: node_id - The node id or name to remove force - Force removal of an active/reachable node returns: bool - True after the node is removed
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |