Skip to content

v0.51.1

Choose a tag to compare

@github-actions github-actions released this 17 Nov 20:38
· 508 commits to main since this release
v0.51.1

v0.51.1 is v0.51.0 plus three fixes. The first two are for boxes started from different runtime directories (a systemd unit, a test, a script with its own XDG_RUNTIME_DIR):

  • kern uninstall no longer ends them: it stopped the boxes' systemd unit whenever its own registry was empty, and that unit holds every box of the user.
  • kern stop <name> no longer stops a same-named box of another runtime directory; it names it, with its supervisor pid, and leaves it running.
  • A GPU reservation written under devices: in a compose file is told again that it belongs under deploy.resources.reservations.devices.

Everything v0.51.0 brought:

One static binary, rootless, no daemon: containers, compose stacks and a sandbox for agent code. This release brings full NVIDIA GPU support, a much wider compose surface and a round of isolation fixes.

curl -fsSL https://raw.githubusercontent.com/getkern/kern/main/install.sh | sh
pip install -U kern-sandbox      # or: npm install kern-sandbox   (0.2.51, carries this binary)

GPUs

  • --gpus all, --gpus 2, --gpus device=0,1 (or a card UUID); compose deploy.resources.reservations.devices; on Linux and WSL2. The SDKs take the same: Sandbox(gpus="all").
  • A card you did not grant has no device node in the box; the driver's libraries are bound read-only from the host.
  • nvidia-smi topo -m and NCCL see the real PCI topology (read-only view of the card's place in the tree).
  • A GPU box starts faster: 31.3 to 13.9 ms on WSL2.

Compose

  • up --scale, scale: and deploy.replicas; a running stack can be rescaled.
  • A bridge per declared network, so services on different networks are separated.
  • up --wait handles one-shot jobs; up --build rebuilds and recreates only what changed.
  • -p on IPv6, host port ranges, network_mode: service:X, ipc: shareable, --abort-on-container-exit --exit-code-from, COMPOSE_FILE from .env, project names and log prefixes as you expect them.

CLI

  • kern create, start, restart, rm -f; kern rmi refuses an image a box uses unless -f.
  • kern logs --all and a Logs tab in kern top: every box in one stream, by time.
  • Log size and retention in kern.toml, set with kern config set|get|unset; kern doctor shows disk and log-store use.

Isolation

  • /sys is read-only in every box.
  • A box with outbound can no longer reach services the host keeps on 127.0.0.1; a published port no longer reaches a box's loopback.
  • Rootless boxes keep their memory and pids caps for their whole life, also across systemctl --user daemon-reload.
  • seccomp: open_tree_attr and listns are denied under KERN_SECCOMP=denylist too (37 escape syscalls denied), and caller-chosen checksum metadata (virtio_net_hdr) is refused.
  • On newer systemd, the command reaches the box exactly as written.

Sandbox SDK 0.2.50 (Python, Node, MCP)

  • A mount source that holds your home, a credential directory or a host credential file (/etc/shadow, ~/.ssh, shell histories...) is refused.

Breaking

  • --cpus and --cpuset-cpus beyond what the host has are refused instead of clamped.

Full list: CHANGELOG.md