wait_container
Wait for a container to stop and retrieve its exit information. Use this to synchronize workflows dependent on container completion.
Instructions
Block until a container stops, then return its exit info.
The default timeout is finite (600s) so the call can't block the MCP server indefinitely on
a container that never reaches condition. When the timeout is exceeded a RuntimeError is
raised (poll get_container instead, or pass a larger timeout). Pass timeout=None to
restore the old unbounded behavior — only do so if you are sure the wait will complete.
args: id_or_name - The container id or name timeout - Maximum seconds to wait before raising (default 600; None waits forever) condition - State to wait for: "not-running" (default), "next-exit", or "removed" returns: dict - The wait result with StatusCode and Error keys
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| condition | No | not-running | |
| id_or_name | Yes |