Build a snapshot from a Docker image.
Blocks until the snapshot is ready (polls with 2s interval).
createSnapshot(
name: string,
dockerImage: string,
fsCapacityBytes: number,
options: CreateSnapshotOptions = {}
): Promise<Snapshot>| Name | Type | Description |
|---|---|---|
name* | string | Snapshot name. |
dockerImage* | string | Docker image to build from (e.g., "python:3.12-slim"). |
fsCapacityBytes* | number | Filesystem capacity in bytes. |
options | CreateSnapshotOptions | Default: {}Additional options (registry ID, timeout). |