Repository navigation
·
3 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
kern runs your images as containers and your agents' code in sandboxes, with no daemon and no root, on Linux, Windows (WSL2) and macOS.
Upgrade
- A box started with
--initkeeps your environment to itself. Its PID 1 is kern's own and never execs, and it still held the environment kern was started with: code in the box could read it from/proc/1/environ, and everykern execinto the box got it too. The SDKs' kept sandboxes,kern sandbox createand compose'sinit: truestart boxes this way. Upgrade kern, and the SDKs to kern sandbox 0.4.3, which carry this binary.
New
kern port-forward <box> [LOCAL:]PORT: a running box's port on 127.0.0.1, with nothing published when it started and no restart. It prints a link to open, ends with the box, and lets in only your own user's programs.kern exec --isolate: a command in a session nested in the box, with its own processes, network and/tmp;--isolate-workspace DIR:overlaygives it a copy of a directory that is thrown away at the end,:roa read-only one.--security-opt seccomp-deny-extra=NAME,...refuses more syscalls in a box, forkern exectoo.--mount type=volume,src=V,dst=D,volume-subpath=Pmounts one directory of a named volume.- Signals:
--initforwards every signal a workload can catch, andkern kill -stakes every standard signal name.
Faster
- Boxes started back to back no longer alternate fast and slow: two networks are kept ready and refilled at once (two from empty in 6 to 8 ms instead of 21 to 22).
- No 2 s wait at every box on a host without a systemd user manager (WSL without systemd):
kern run --rm alpine truewent from about 2040 ms to 5 to 7 ms.
Fixed
- An interrupted
kern stopno longer leaves the box half stopped. kern top <box>lists anexec --isolatesession;kern top --jsonsays which running box is a sandbox (kind).kern inspectshows--init, the box's security options and a volume mounted with a subpath.kern sandbox execandrmtake every sandboxkern sandbox lslists.
kern sandbox 0.4.3 (Python and Node)
Carries kern v0.62.0. No API changes.
Also new, and off unless started: kern compat opensandbox serve, an HTTP API for sandboxes on 127.0.0.1:8080. Each sandbox is a kern box, with commands and bash sessions, file transfer, a Jupyter code interpreter, isolated sessions, network policies changed live, and a proxy to its ports (details).
Full list: CHANGELOG.md.