tabc Runs Docker Containers Inside Browser Tabs, No Linux VM Needed

A new open-source container runtime called tabc starts each container in its own Chromium tab, letting Docker commands run on macOS without a Linux virtual machine.

tabc is an OCI container runtime, similar to runc, that runs each container in a separate browser tab. Developers can use it with Docker by passing the runtime flag, and the author reports that a simple Alpine container starts in under a second on a Linux laptop. On a Mac, tabc needs no hypervisor and no Linux virtual machine, since the container runs on a Linux kernel compiled to WebAssembly and executed by the browser.

The project builds on unkernel, a project by Pooya Parsa that compiles the Linux kernel to WebAssembly so it can run in a browser without full hardware emulation. Earlier efforts such as JSLinux, v86, WebVM and qemu-wasm faced limits including 32-bit support and performance problems. The author notes that unkernel still has delays for compute-heavy workloads, and that an idle container uses about 540 MiB of host memory.

Isolation in tabc comes from the browser's sandbox rather than the host kernel. Containers can also be shown in the browser with an open flag, and a lightweight tool called tocker lets Compose files run on macOS, where there is no Docker daemon.

The author frames tabc as a rethinking of the container stack on macOS, where Docker Desktop, Colima, OrbStack and Podman Machine all rely on a Linux VM. The project is available through Nix and works on Linux and Apple Silicon Macs.

Source: Farid Zakaria’s Blog


Posted

in

by

Tags: