run_container
Create and start Docker containers with specified images, configurations, and environment settings for application deployment and testing.
Instructions
Run a container (create and start). This is the preferred method for starting containers.
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 |
|---|---|---|---|
| image | Yes | Docker image name (e.g., 'nginx:latest') | |
| name | No | Container name | |
| command | No | Command to run as an array (e.g., ['python', 'app.py']) | |
| entrypoint | No | Entrypoint as an array (e.g., ['/bin/bash', '-c']) | |
| env | No | Environment variables as array of KEY=VALUE strings (e.g., ['NODE_ENV=production', 'PORT=3000']) | |
| exposedPorts | No | Exposed ports as object with port/protocol keys (e.g., {'80/tcp': {}, '443/tcp': {}}) | |
| hostConfig | No | Host configuration including port bindings and volumes | |
| labels | No | Container labels as key-value pairs |