stop_container
Stop a running Docker container with graceful timeout and dry-run preview options. Supports undo via harness recording.
Instructions
[WRITE][risk=medium] Stop a running container. Inverse: start it.
Captures whether it was running so the harness records a start undo. Pass dry_run=True to preview.
Args: container_id: Container id or name. timeout: Seconds to wait for graceful stop before killing (default 10). dry_run: If True, preview without stopping. target: Target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| timeout | No | ||
| container_id | Yes |