container_restart
Restart a container in one call: stop it, wait up to stop_timeout_seconds, then start it again. Returns the full container inspect payload for verification.
Instructions
Restart a container: stop then start again in one call.
The container receives its configured stop signal (STOPSIGNAL, default SIGTERM), SIGKILL
after stop_timeout_seconds, and is then started. Use container_stop/container_start to do
the halves separately. When the server runs containerized it refuses to restart its own
container.
Args: stop_timeout_seconds: Seconds between the stop signal and SIGKILL
Returns: dict: The container's full inspect payload after the restart
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes | ||
| stop_timeout_seconds | No |