run_container
Run a Docker container from any image, specifying environment variables, port mappings, volumes, command, container name, and detach mode.
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": "run_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables (e.g. ["KEY=value"]) | |
| name | No | Name for the container | |
| image | Yes | Docker image to run | |
| ports | No | Port mappings (e.g. ["8080:80"]) | |
| detach | No | Run container in background | |
| command | No | Command to run in the container | |
| volumes | No | Volume mappings (e.g. ["/host/path:/container/path"]) |