run_container
Start a new container with specified image, ports, volumes, and environment variables. Configure container settings and run applications in isolated environments.
Instructions
Run a new container.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Container image | |
| name | No | Optional name | |
| detach | No | Run in background | |
| ports | No | Port mappings (e.g., ['8080:80']) | |
| env | No | Environment variables (KEY=VAL) | |
| volumes | No | Volumes (e.g., ['/host:/container']) |
Input Schema (JSON Schema)
{
"properties": {
"detach": {
"default": true,
"description": "Run in background",
"title": "Detach",
"type": "boolean"
},
"env": {
"description": "Environment variables (KEY=VAL)",
"items": {
"type": "string"
},
"title": "Env",
"type": "array"
},
"image": {
"description": "Container image",
"title": "Image",
"type": "string"
},
"name": {
"default": null,
"description": "Optional name",
"title": "Name",
"type": "string"
},
"ports": {
"description": "Port mappings (e.g., ['8080:80'])",
"items": {
"type": "string"
},
"title": "Ports",
"type": "array"
},
"volumes": {
"description": "Volumes (e.g., ['/host:/container'])",
"items": {
"type": "string"
},
"title": "Volumes",
"type": "array"
}
},
"required": [
"image"
],
"type": "object"
}