Stop container
stop_containerGracefully stop a running Docker container with SIGTERM, then force-kill after a configurable timeout. No action if already stopped.
Instructions
Gracefully stop a running container (SIGTERM, then SIGKILL after a grace period). No-op if it is already stopped.
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": {
"container": "<container>"
},
"name": "stop_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Seconds to wait before force-killing (default: 10). | |
| container | Yes | Container name or id. |