spawn
Create a child sandbox under a parent with spawn policy. Children have restricted capabilities. Configure image, CPU, and memory or use defaults.
Instructions
Spawn a child sandbox under a parent sandbox. The parent must have a spawn policy configured in SPAWN_POLICIES. Children have restricted capabilities (no clone/snapshot/restore/reset).
Args: image: Container image for child (default: first allowed image from parent's policy). parent: Name of the parent sandbox (must have spawn policy). name: Name for the child sandbox (auto-generated if empty). cpus: CPU cores for child (0 = use policy default, clamped to policy ceiling). memory: Memory for child e.g. "512M" (empty = use policy default, clamped to ceiling).
Returns: Child sandbox info or error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | ||
| parent | No | default | |
| name | No | ||
| cpus | No | ||
| memory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |