run_container
Run a Docker container locally for testing by specifying image, container name, and port mapping to access the app via localhost.
Instructions
Runs a Docker container locally for testing Args: image: Docker image to run, e.g. "nginx:latest" If no tag is specified, then usel alpine for default.It is smaller and faster to pull container_name: container name container_port: port the app listens on INSIDE the container, e.g. "80" for nginx host_port: port on your machine to access it, e.g. "8080" → http://localhost:8080
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>",
"container_name": "<container_name>",
"container_port": "<container_port>",
"host_port": "<host_port>"
},
"name": "run_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| host_port | Yes | ||
| container_name | Yes | ||
| container_port | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |