tabc runs Docker containers in browser tabs, with no Linux VM needed on macOS
tabc is an OCI[1] container runtime, like runc, that runs each container in its own Chromium tab. It works with Docker: docker run --runtime tabc alpine starts a container in under a second. Each tab boots unkernel, a project by Pooya Parsa that compiles the Linux kernel to WebAssembly[2], so the container never touches the host's kernel. On a Mac, tabc needs no hypervisor[3] and no Linux VM, because the host only has to provide a browser.
Isolation comes from the browser's sandbox rather than from the host kernel, and an idle container uses about 540 MiB of host memory. On a Linux laptop, the author measured roughly 0.87 seconds from command to exit across fifteen runs of echo hi. With --open, the container's page opens in the default browser, and that page is a pty[4] connected to the terminal you started it from.
Compose files can use tabc as the runtime, and according to the author, the rest of Compose keeps working, including networking and volumes. Compute-heavy workloads may show noticeable delays because the processes are still emulated.
Repository tabc github.com
Open source OCI runtime that runs each Docker container in its own browser tab, so no Linux VM is needed on macOS.
Read the original fzakaria.comDiscussion
Sources
-
Farid Zakaria’s Blog
Browser tabs as a container runtime


