Usage
captures defaults to @external.
Add @python to run Python programs in the guest too.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run captured programs in an existing microsandbox microVM.
captures defaults to @external.
Add @python to run Python programs in the guest too.
from mirage import RAMVFS, MountMode, Workspace
ws = Workspace(
{"/data": RAMVFS()},
mode=MountMode.EXEC,
machines={"box": {"provider": "microsandbox", "sandbox": "mirage-box", "captures": ["@python", "@external"]}},
)
await ws.shell("python3 -c 'print(1 + 1)'")