docker_interactive_exec
Run interactive commands in Docker containers with TTY allocation, capturing output until the process prompts for input. Returns a session id to continue or close the interaction.
Instructions
Start a command inside a Docker container with a TTY allocated, for programs that prompt for input (sudo password, y/N confirmations, setup wizards, REPLs). Waits until output goes quiet (likely waiting for input) or the process exits, then returns the output so far plus a session_id. If the command finishes without prompting, the session is closed automatically and there is nothing further to do. Otherwise, use docker_interactive_input to reply or poll, and docker_interactive_close when finished. Idle sessions auto-expire after 10 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| quiet_ms | No | How long output must be idle before returning. | |
| container | Yes | Docker container name or id. |