docker_run_container
Configure and run Docker containers by specifying image, ports, environment variables, volume mounts, and optional commands or auto-removal.
Instructions
Run a Docker container with specified configuration
Args: image: Docker image name (e.g., 'nginx:latest') name: Optional container name command: Optional command to run ports: Optional port mappings {"container_port": host_port} environment: Optional environment variables volumes: Optional volume mounts {"host_path": "container_path"} detach: Run in detached mode (default: True) remove: Remove container when it stops (default: False)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| name | No | ||
| command | No | ||
| ports | No | ||
| environment | No | ||
| volumes | No | ||
| detach | No | ||
| remove | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |