run_container
Run a Docker container from any image, specifying environment variables, port mappings, volumes, command, container name, and detach mode.
Instructions
Run a Docker container
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables (e.g. ["KEY=value"]) | |
| name | No | Name for the container | |
| image | Yes | Docker image to run | |
| ports | No | Port mappings (e.g. ["8080:80"]) | |
| detach | No | Run container in background | |
| command | No | Command to run in the container | |
| volumes | No | Volume mappings (e.g. ["/host/path:/container/path"]) |