Skip to main content
A sandbox can start from a public container image instead of a Styne template. Pass the image in the create call:
The sandbox is a full VM whose root disk is that image, so what the image ships is what runs: python3 --version prints 3.12 in the example. The answer is the usual create answer plus an image block:

What an image sets

An image with no shell gets a minimal one at /bin/sh, so sh -c commands work.

Which images

References as Docker writes them: alpine, python:3.12-slim, grafana/grafana:11, ghcr.io/org/app:v1, quay.io/org/app@sha256:.... Public images on Docker Hub (docker.io), ghcr.io and quay.io work; any other registry answers 422 image_registry_not_allowed. Images are linux/amd64, at most 10 GiB unpacked. A tag is resolved when an image is first prepared; use @sha256:... to pin a digest. alpine:3.20, python:3.12-slim, node:22, node:24 and ubuntu:24.04 are always ready. Any other image is prepared the first time somebody asks for it.

The first create of a new image

A create of an image that is not prepared yet starts its preparation (pull, unpack, first boot, snapshot: about 20 to 60 seconds) and waits for it. When the image is ready the answer is the normal 201. When it is not ready yet, the answer is 202 with error_code: image_building and a Retry-After: repeat the same create and it joins the build.
Wait for longer inside the call with "imageOptions": {"waitSeconds": 25} (the default is 15, the most 25). A prepared image starts like any template: tens of milliseconds on the machine, plus your network round trip.

Errors

Read an image

GET /images/{digest} answers the registered image: its references, its config and the machines that hold a ready build.