Skip to content

v0.2.0 — Native Zero-Privilege OCI Image Pull, Auto ENTRYPOINT/CMD & Live Logs

Latest

Choose a tag to compare

@jonyhy96 jonyhy96 released this 05 Dec 06:35

What's New in v0.2.0

Zero-Privilege Native OCI Image Pull (linux/arm64)

  • Pull and boot standard OCI Registry v2 images (Docker Hub, ghcr.io, ACR, Harbor, etc.) directly via image: "alpine:3.20", image: "python:3.12-alpine", or { oci: "ghcr.io/org/app:v1", auth: { token } } — no Docker Daemon, no root, no privileged mode.
  • Parallel layer downloads, OCI whiteout (.wh.*, .wh..wh..opq) handling, automatic /usr/local/sbin/kw-init bootstrap injection, fast ZSTD EROFS packing (mkfs.erofs -L kwroot --all-root -zzstd,level=1 with mke2fs fallback), and digest-based disk caching + tag caching.
  • Rejects amd64-only images cleanly with HTTP 400 UNSUPPORTED_IMAGE_ARCH.
  • Production Dockerfile now includes erofs-utils and e2fsprogs out-of-the-box.

Automatic OCI ENTRYPOINT / CMD Execution & Live /logs

  • Automatically launches the OCI image's ENTRYPOINT + CMD (or caller-provided entrypoint / cmd / env / cwd / user overrides following Kubernetes & OpenSandbox semantics; pass runEntrypoint: false to disable) while keeping kwbox tty serve active for concurrent exec, files, WebSocket PTY, and AF_VSOCK /preview/:port/*.
  • Added GET /v1/sandboxes/:id/logs (JSON or real-time SSE via ?follow=true / Accept: text/event-stream) and sandbox.logs() in the JS/TS SDK.

Playground & Reliability Improvements

  • Web Playground Image input now supports both built-in images and arbitrary linux/arm64 OCI image references.
  • Fixed Node 20/22 timer ref handling in withTimeout and hardened CI multi-version compatibility (33/33 tests passing on Node 26 live Linux 7.x).

Container Image (Multi-Arch linux/amd64, linux/arm64)

docker pull ghcr.io/jonyhy96/unkernel-sandbox:0.2.0
docker pull ghcr.io/jonyhy96/unkernel-sandbox:latest