Repository navigation
v0.51.2
v0.51.2: on Windows (WSL), boxes run as the distro's user kern; kern self-update; compose and build fixes.
curl -fsSL https://raw.githubusercontent.com/getkern/kern/main/install.sh | sh
irm https://raw.githubusercontent.com/getkern/kern/main/install.ps1 | iex # Windows (PowerShell)
From this release on, kern self-update installs the next one.
Windows (WSL)
- Boxes run as the distro's ordinary user
kern(uid 1000): a box's root is uid 1000 of the distro. Runninginstall.ps1again converts an existing distro: images pulled again for the user, volumes and settings moved with their modes kept; an account already on uid 1000 becomes the user. - Each distro has its own cgroup subtree: a kern in one distro no longer stops the boxes of another.
- Started from a root terminal, kern runs as the user on a terminal and in a session of its own; the user's processes hold no descriptor of root's terminal or of anything root's shell left open.
- The distro ships
passt; root's password is locked.kern doctorsays who kern runs as and in which distro.
kern self-update
- Installs the newest signed release (minisign);
--check [--json],--to X.Y.Z,--rollback. Refuses a downgrade and leaves installs owned by pip, npm or a package manager to them. install.shchecks the release signature whenminisignis installed.
Compose
.envvalues reach the box as written ({...},[...],*x,&x,a #b).upstarts nothing when an image cannot be pulled or a host port is taken, and names each service, image, port and holder.- On a bridge, a box's own names resolve to its own address:
hostname -ianswers one address. - A wait for a dependency longer than 30 s is reported with its elapsed time.
Build
COPY --chownandADD --chownset the owner, by number or by the image's user and group names.FROM <stage>andCOPY --frombuild rootless over directories a subordinate uid owns (thepython:*-slimapt directories) and keep setuid bits;FROM <stage>no longer warns about an unpinned tag.- A step running longer than 30 s is reported with its elapsed time, pids and memory.
Isolation
- A box keeps the standard default capability set (
CapEff00000000a80425fb);--cap-addadds one back. - A box can no longer push input into the terminal it was started from:
ioctlTIOCSTIandTIOCLINUXreturnEPERM. - Caps apply when
XDG_RUNTIME_DIRpoints outside/run/user; box scratch never goes under a runtime directory another user owns.
Pull and doctor
- Credentials a registry refuses are retried anonymously, with a line naming
kern loginandkern logout. kern doctorreports limits as a box gets them; SELinux counts only when selinuxfs is mounted;sshfsis optional.- The published-port warning names the host port and how to keep it on
127.0.0.1.
Full list: CHANGELOG.md