Skip to content

Keg v0.15.6

Choose a tag to compare

@rahult rahult released this 30 Nov 11:06
· 6 commits to main since this release

Keg 0.15.6 fixes a fault in 0.15.5 on a Mac: a command run in a container (keg exec, docker exec, a health check, a command in a machine) ran in the Linux machine's own files, not the container's. If you have 0.15.5, update.

Fixed

  • On a Mac, a command run in a container ran in the VM's own files (0.15.5 only). A program only the image has was "not found", a health check that ran one failed and its container was unhealthy, and what such a command wrote did not reach the container. Containers started with run were not affected, nor was any Linux node. After updating, Stop Keg and Start Keg: the fix is in how the Linux machine starts.
  • The memory meter read an idle VM as nearly full (0.15.5 only). Memory the VM had handed back to macOS was counted as in use, in the Mac app and the console.
  • A container cannot open the VM's own kind of socket (AF_VSOCK), the door between Keg's VM and the Mac. One could reach what the Mac listens on for the VM, such as an SSH agent shared with keg vm start --ssh-agent. A privileged container, which is root on the node by design, still can.

Changed

  • The Mac's VM answers in about a quarter of a second, and a request to the node takes a third of the time: kegd listens on the Mac's virtio sockets itself.
  • A smaller kernel in the Mac's VM, 15.2 MB.
  • The VM keeps less memory it is not using, and is given more at once when it says it is short.

Experimental

Off until you turn it on (keg settings experimental on deep-sleep, or Settings › Experimental):

  • deep-sleep: the Mac's VM is powered off after its idle minute when no container, machine or service runs at all, and holds none of the Mac's memory. The next command starts it again in about a quarter of a second. Rough: what was only in the VM's memory is gone at the next start, as after keg vm stop.

quiet-sleep, from 0.15.5, is as it was. Nothing graduated. See EXPERIMENTAL.md.

Upgrading from 0.15.5

  • keg update. On a Mac the app updates itself; then Stop Keg and Start Keg, which starts the Linux machine anew: until then the fault of 0.15.5 stays.
  • No capability files are new; nothing changes in an app's database.

See keg.rahultrikha.com for more.