run_container
Run a Docker container locally for testing by specifying the image, container name, and port mapping to access it via localhost.
Instructions
Runs a Docker container locally for testing Args: image: Docker image to run, e.g. "nginx:latest" If no tag is specified, then usel alpine for default.It is smaller and faster to pull container_name: container name container_port: port the app listens on INSIDE the container, e.g. "80" for nginx host_port: port on your machine to access it, e.g. "8080" → http://localhost:8080
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| host_port | Yes | ||
| container_name | Yes | ||
| container_port | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |