packages/cloud-frontend/content/api/containers.mdx
import { Callout } from "@/docs/components";
Deploy and manage Docker containers. The current public API accepts a generic image reference in image; it is not limited to ECR images.
Get all containers for your organization.
{
"success": true,
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-app",
"project_name": "my-app",
"status": "running",
"image_tag": "ghcr.io/acme/my-app:latest",
"load_balancer_url": "https://my-app.example.com",
"cpu": 256,
"memory": 512,
"port": 3000,
"desired_count": 1,
"billing_status": "active",
"created_at": "2026-05-05T10:30:00Z"
}
]
}
Deploy a new container. Returns a container record and polling instructions.
{
"name": "My App",
"project_name": "my-app",
"image": "ghcr.io/acme/my-app:latest",
"port": 3000,
"cpu": 256,
"memory": 512,
"desired_count": 1,
"health_check_path": "/health",
"environment_vars": {
"PORT": "3000",
"ELIZA_APP_ID": "uuid-abc123"
}
}
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Display name. |
project_name | string | yes | Stable project identifier. |
image | string | yes | Full image reference, for example ghcr.io/owner/repo:tag. |
port | integer | no | Container port. Default: 3000. |
cpu | integer | no | CPU units. Default: 256. |
memory | integer | no | Memory in MB. Default: 512. |
desired_count | integer | no | Must be 1 on the current shared Docker pool. |
health_check_path | string | no | Health check endpoint. Default: /health. |
environment_vars | object | no | String environment variables. |
persist_volume | boolean | no | Mount project-scoped persistent storage at /data. |
use_hetzner_volume | boolean | no | Use a Hetzner Cloud volume when persistent volumes are enabled and configured. |
volume_size_gb | integer | no | Declared volume size in GiB. Default: 10. |
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "My App",
"project_name": "my-app",
"status": "deploying",
"load_balancer_url": "https://my-app.example.com"
},
"polling": {
"endpoint": "/api/v1/containers/550e8400-e29b-41d4-a716-446655440000",
"intervalMs": 5000,
"expectedDurationMs": 120000
}
}
Get container details and deployment status.
| Status | Description |
|---|---|
pending | Deployment initiated. |
deploying | Image pull or container start in progress. |
running | Container is healthy and accessible. |
failed | Deployment failed; check error_message and logs. |
stopped | Container stopped. |
suspended | Billing or policy suspension. |
Patch supports:
environment_vars to replace runtime environment variables.desired_count to scale, currently only 1.action: "restart" to restart the container.Stop and delete a container.
Get plain-text container logs.
| Parameter | Type | Description |
|---|---|---|
tail | integer | Number of lines. Default: 200. |
Get container metrics.
Get organization container quota.
Create or fetch registry credential helper data when configured. Public container creation can also use any image reference that the target node can pull.