service_update
Update a Docker swarm service's configuration or force a redeploy to recreate tasks without changing the spec.
Instructions
Update a swarm service's configuration, or force a redeploy with no spec change.
Pass exactly one of updates (fields to change, same parameters as service_create) or
force=True (the docker service update --force equivalent: bumps the ForceUpdate counter so
the service's tasks redeploy with an unchanged spec — e.g. to reschedule after a node change or
re-pull a mutable tag).
args: id_or_name - The service id or name updates - Fields to update on the service; exactly one of updates/force force - Redeploy the service without changing its spec; exactly one of updates/force returns: bool - True after the update
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| updates | No | ||
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |