Build and Activate a Snapshot
A 3-step recipe with Daytona. We can help you get access.
Recipe · 3 steps
Build and Activate a Snapshot
with Daytona
Create a snapshot from an image, wait for it to build, and activate it.
- Register a new snapshot from the supplied container image.
- Poll the snapshot until the build completes, looping while it is building, pending, or pulling, and ending if the build fails.
- Activate the built snapshot so sandboxes can be created from it.
What you'll need to have ready
- apiToken: Daytona API key used as a bearer token.
- name: The name of the snapshot to create.
- imageName: The container image name to build the snapshot from (e.g. ubuntu:22.04).
- cpu: CPU cores to allocate to sandboxes created from this snapshot.
- memory: Memory in GB to allocate to sandboxes created from this snapshot.
- disk: Disk space in GB to allocate to sandboxes created from this snapshot.
For your developer
Arazzo workflow daytona-io:build-and-activate-snapshot, 3 operations: createSnapshot → getSnapshot → activateSnapshot. Specs on APIs.io.