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