Repository navigation
tabc 1.0.0
Run containers in a browser tab.
tabc is an OCI runtime, like runc. Where runc starts a container as a
Linux process, tabc starts headless Chromium and boots the container
inside a tab, on unkernel, a
Linux kernel compiled to WebAssembly. It needs no Linux underneath, so
it runs on a Mac with no VM.
This is the first release with archives for people without Nix:
$ curl -L https://github.com/fzakaria/tabc/releases/download/v1.0.0/tabc-linux-amd64.tar.gz | tar -xz
$ ./tabc-linux-amd64/tabc run alpine echo hi
hi| archive | for |
|---|---|
tabc-linux-amd64.tar.gz |
Linux, x86-64 |
tabc-linux-arm64.tar.gz |
Linux, arm64 |
tabc-darwin-arm64.tar.gz |
macOS, Apple Silicon |
tabc-darwin-amd64.tar.gz |
macOS, Intel |
Each archive holds tabc, tocker and the licenses. SHA256SUMS lists
the archives' checksums. tabc uses the Chrome or Chromium already
installed, or the one TABC_CHROMIUM points at, and tocker uses the
docker command line already installed. With Nix,
nix run github:fzakaria/tabc -- run alpine echo hi brings its own
Chromium on Linux.
What it does:
tabc runpulls an image and runs it, with the flags ofdocker run:
-it,-e,-w,-u,-m,--cpus,-p,-v,--name,
--network.--openruns the container in a tab of your own browser, with a
terminal in the tab that mirrors the one you started it from.tockeris a stand-in fordockeron a machine with no Docker
daemon:tocker compose upstarts every service in a tab of its own,
andtocker execruns a second program in a running container.- Under Docker or Podman, tabc is a runtime to name with
--runtime tabc;docker exec, networks, published ports and volumes
work as they do with runc.
What to know before trying it:
- The guest is aarch64 on every host, so images need a
linux/arm64
variant. - A guest has 2 CPUs unless
--cpusasks for another count.echo hi
takes about a second from a cold start on a laptop. - The Mac binaries are not notarized. Fetched with
curlthey run; one
downloaded in a browser needs
xattr -d com.apple.quarantine tabcfirst. - The Linux arm64 and Intel Mac archives are built and not yet run on
such a machine. Reports are welcome.
The README has the rest, and
docs/design.md
says how it works and what is missing.