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.
Input Schema
TableJSON 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 |