rollback_service
Revert a Docker Swarm service to its previous specification. Use this to undo recent updates that introduced problems.
Instructions
Roll a swarm service back to its previous spec (the docker service rollback equivalent).
Re-applies the service's PreviousSpec — the spec from before the most recent update_service /
scale_service / force_update_service. Raises ValueError if the service has no PreviousSpec
(it has never been updated, or was already rolled back). The high-level SDK exposes no rollback,
so this reads the current version and previous spec via the low-level APIClient and submits them
with update_service.
args: service_id - The service id or name returns: dict - The daemon response (a dict with a "Warnings" key)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_id | Yes |