Update service
docker_update_serviceUpdate a container service in place while preserving unspecified spec fields so environment variables, mounts, and networks are not reset to defaults.
Instructions
Update a service in place, preserving unspecified spec fields.
Performs a read-modify-write of the full service spec so that env,
mounts, networks and other settings are not reset to defaults (the
footgun of the high-level Service.update).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"service_id": "<service_id>"
},
"name": "docker_update_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| force | No | ||
| image | No | ||
| labels | No | ||
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| replicas | No | ||
| service_id | Yes | ||
| constraints | No |