run_container
Start a Docker container from a specified image, with options for port mapping, environment variables, and custom commands.
Instructions
Run a new container from an image.
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 | e.g. KEY=val,OTHER=val2 | |
| name | No | ||
| image | Yes | ||
| ports | No | e.g. 8080:80 | |
| detach | No | Background. Default: true | |
| command | No |