service_update
Update a Docker swarm service's configuration, or force a redeploy without changing its spec to reschedule tasks or re-pull mutable tags.
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: 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 |