Repository navigation
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 uninstallno 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 underdeploy.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); composedeploy.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 -mand 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:anddeploy.replicas; a running stack can be rescaled.- A bridge per declared network, so services on different networks are separated.
up --waithandles one-shot jobs;up --buildrebuilds and recreates only what changed.-pon IPv6, host port ranges,network_mode: service:X,ipc: shareable,--abort-on-container-exit --exit-code-from,COMPOSE_FILEfrom.env, project names and log prefixes as you expect them.
CLI
kern create,start,restart,rm -f;kern rmirefuses an image a box uses unless-f.kern logs --alland a Logs tab inkern top: every box in one stream, by time.- Log size and retention in
kern.toml, set withkern config set|get|unset;kern doctorshows disk and log-store use.
Isolation
/sysis 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_attrandlistnsare denied underKERN_SECCOMP=denylisttoo (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
--cpusand--cpuset-cpusbeyond what the host has are refused instead of clamped.
Full list: CHANGELOG.md