From Container Image to Running Sandbox
A 4-step recipe with Daytona. We can help you get access.
Recipe · 4 steps
From Container Image to Running Sandbox
with Daytona
Build a snapshot from an image and launch a running sandbox from it.
- Register a new snapshot from the supplied container image.
- Poll the snapshot until it becomes active, looping while it is building, pending, or pulling, and ending if the build fails.
- Create a sandbox backed by the freshly built snapshot.
- Poll the sandbox until it reaches started, looping while it is still provisioning and ending if it errors.
What you'll need to have ready
- apiToken: Daytona API key used as a bearer token.
- snapshotName: The name of the snapshot to create and then back the sandbox with.
- imageName: The container image name to build the snapshot from (e.g. ubuntu:22.04).
For your developer
Arazzo workflow daytona-io:image-to-running-sandbox, 4 operations: createSnapshot → getSnapshot → createSandbox → getSandbox. Specs on APIs.io.