docker_run_container
Run a Docker image in a new container with options for ports, volumes, environment variables, networking, and detached execution.
Instructions
Run an image in a new Docker container (preferred over docker_create_container + docker_start_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": "docker_run_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Container name | |
| image | Yes | Docker image name | |
| ports | No | Container-to-host port bindings | |
| detach | No | Run container in the background | |
| labels | No | Container labels | |
| command | No | Command to run in container | |
| network | No | Network to attach the container to | |
| volumes | No | Volume mappings | |
| entrypoint | No | Entrypoint to run in container | |
| auto_remove | No | Automatically remove the container | |
| environment | No | Environment variables dictionary |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||