container_restart
Restart a Docker container by specifying its ID or name, with an optional grace period for graceful shutdown before force restart.
Instructions
Restart a container.
args: id_or_name - The container id or name stop_timeout_seconds - Seconds to wait for graceful stop before SIGKILL and restart returns: dict - The container's attrs after restart
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes | ||
| stop_timeout_seconds | No |