examples/typescript/README.md
msb + libkrunfw installed (auto-downloaded by the npm postinstall script)root-bind and root-block: git submodule update --init --recursiveEach example is a standalone Node.js project. Install dependencies first:
cd examples/typescript/<example>
npm install
npm start
For example:
cd examples/typescript/root-oci
npm install
npm start
| Example | Description |
|---|---|
root-oci | OCI image rootfs |
root-bind | Bind-mounted local directory |
root-block | qcow2 disk image |
rootfs-patch | Pre-boot filesystem patches |
init-handoff | Hand PID 1 off to systemd |
volume-named | Named volumes shared across sandboxes |
volume-disk | Disk image volumes (raw / qcow2) at guest paths |
snapshot-fork | Snapshot a stopped sandbox and boot a fresh one from it |
fs-read-stream | Streaming file read |
metrics-stream | Streaming resource metrics |
shell-attach | Interactive shell attach |
net-basic | Basic networking |
net-dns | DNS filtering |
net-policy | Network policies |
net-ports | Port publishing |
net-secrets | Secret injection |
net-tls | TLS interception |