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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Seconds to wait before force-killing (default: 10). | |
| container | Yes | Container name or id. |