docker_run
Run Docker containers by specifying image, ports, environment variables, and command options. Supports detached mode and auto-removal.
Instructions
Run a Docker container.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image": "<image>"
},
"name": "docker_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variable in KEY=VALUE format. | |
| name | No | Optional container name. | |
| image | Yes | The image to run. | |
| ports | No | Port mappings in Docker format (e.g. "8080:80"). | |
| detach | No | If True, run in detached mode (-d). Default: True. | |
| remove | No | If True, remove container on exit (--rm). | |
| command | No | Optional command to run inside the container. | |
| confirm | No | Set to True to confirm when required by config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||