restart_container
Restart a container with audit capture of prior state, dry-run preview, and configurable timeout.
Instructions
[WRITE][risk=medium] Restart a container (captures prior state for audit).
A restart has no meaningful inverse, so no undo is recorded. 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 restarting. 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 |