Custom Images
VoidRun runs each sandbox from a catalog image you select with theimage field (and optional name:version tag). The hosted platform ships four system images: code, docker-lite, max, and docker: documented below. You still get MicroVM isolation and fast wake for snapshotted sandboxes.
System images
These are the built-in system images on the VoidRun platform (your dashboard lists them under System images). Version numbers change over time (for examplecode:1.0.47); you pass the short name when the API defaults the version, or name:version when you pin.
You confirm exact names, versions, and sizes in the dashboard or with
GET /images. Self-hosted deployments may expose a different catalog: see Self-hosted deployments.image, the API uses the deployment default (the open-source SDKs default to code when they fill the field: see TypeScript / Python SDK pages).
How images work
When you create a sandbox with a given image, VoidRun:- Resolves the image (from cache or pull, depending on the host)
- Boots an isolated MicroVM with that root filesystem
- Keeps resume fast when the sandbox sleeps (platform-dependent; often under ~200 ms)
🚀 Fast resume
Snapshotted sandboxes wake quickly; cold boot time depends on image size (docker is heavier than code).
🔒 Full isolation
Each sandbox runs in its own MicroVM, regardless of image.
📦 Catalog + operators
You start from code / docker-lite / max / docker; operators may add more entries returned by
GET /images.Example: code image (Node and Python)
The code image includes Node and Python tooling. You use it for JavaScript/TypeScript and Python workloads without switching images.
Example: max image (Debian general purpose)
You choose max when you need a Debian-style environment and broader compatibility than the Alpine-based code image.
Example: docker-lite image (containers inside the sandbox)
You choose docker-lite for most Docker-in-Docker workflows when you want the lighter Alpine-based image and a Docker daemon that is ready as the sandbox finishes booting. Use docker when you specifically want the heavier Debian-based variant (for example for K3s or Debian-oriented tooling). See Nested containers for full examples.
Discovering images
The HTTP API lists available images withGET /images. Use the name (and version if you pin) returned there as image on POST /sandboxes.
Image caching and performance
The first creation with a large image (especially
docker, and to a lesser extent docker-lite) can take longer while the host caches layers. Later sandboxes on the same host typically start faster.Best practices
✅ Do
- Default to
codefor interpreters, Node, and Python in one box - Use
maxwhen you need Debian-style compatibility - Use
docker-litefor most Docker-in-VM workflows; it stays closer to the Alpinecodeimage - Use
dockerwhen you want the heavier Debian-based Docker/K3s environment; size CPU/mem up
❌ Don't
- Invent image names that are not in
GET /imagesor this system list - Use
dockerfor simple script runs:codeormaxis lighter - Recreate sandboxes when resume would suffice
Selection guide
Environment variables at create
Next steps
Package management
Install apt, pip, and npm inside the sandbox
Code execution
Exec and interpreter in your chosen image
Nested containers
docker image and container workflows
