container_create
Create a new Docker container from an image with optional name, environment variables, port mappings, and volume mounts.
Instructions
Create 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": "container_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables (e.g., ["KEY=val"]) | |
| name | No | Container name | |
| image | Yes | Image name (e.g., nginx:latest) | |
| ports | No | Port mappings (e.g., ["8080:80"]) | |
| volumes | No | Volume mounts (e.g., ["vol:/data"]) |