Skip to content

Latest commit

 

History

History

examples

Folders and files

Examples

Each example runs against a local vmlayerd with the Docker backend.

File Shows
quickstart.py create, exec, files, kill
workspace.py a named volume shared by successive sandboxes, checkpoints as templates
server.py an image that is a server: entrypoint, wait-for-port, expose
streaming.py spawn with live output and stdin, re-attach by pid
quickstart.ts the TypeScript equivalent of quickstart.py
cd sdk/python && uv run python ../../examples/quickstart.py
cd examples && npm install && npx tsx quickstart.ts   # TypeScript, uses the SDK from ../sdk/typescript