create_container
Create a new Docker container on a VPS by specifying image, name, ports, volumes, environment variables, network, and restart policy.
Instructions
Create a new 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": "create_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Container name | |
| image | Yes | Image to use (e.g., nginx:latest) | |
| env | No | Environment variables (e.g., ["VAR=value"]) | |
| ports | No | Port mappings (e.g., {"80/tcp": [{"HostPort": "8080"}]}) | |
| volumes | No | Volume bindings | |
| network | No | Network to connect to | |
| restart_policy | No | Restart policy (no, always, on-failure, unless-stopped) |