lattice_create_container
Add a container definition to a stack by specifying name, image, and tag. Configure optional settings like volumes, ports, and environment variables. Deploy the stack to start the container.
Instructions
Add a container definition to a stack. Creates the record only — deploy the stack to actually start it. JSON-shaped fields are passed as strings, matching the API
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Image tag, e.g. 'latest' | |
| name | Yes | Container name | |
| image | Yes | Image, e.g. registry.appleby.cloud/openbucket-api | |
| command | No | Override the image command | |
| volumes | No | JSON object string of host:container volume mappings | |
| env_vars | No | JSON object string of environment variables | |
| replicas | No | Replica count | |
| stack_id | Yes | Stack to add the container to | |
| cpu_limit | No | CPU limit in cores | |
| entrypoint | No | Override the image entrypoint | |
| health_check | No | JSON object string describing the healthcheck | |
| memory_limit | No | Memory limit in bytes | |
| port_mappings | No | JSON array string, e.g. '[{"container_port":"8000","host_port":"8080","protocol":"tcp"}]' | |
| restart_policy | No | e.g. 'unless-stopped', 'always' |