Skip navigation
I ran a #linux container on a #mac with no Linux VM and no hypervisor.
0:00 / 0:28

I ran a #linux container on a #mac with no Linux VM and no hypervisor.

Farid Zakaria

@fmzakari1.3K followers

Visit on X
434 likesDownloadOriginal post

29,355 views #linux #mac

I ran a #linux container on a #mac with no Linux VM and no hypervisor. The container is a browser tab. 🤯 tabc is a container runtime, like runc, except each container boots its own Linux kernel, compiled to WebAssembly, inside Chromium. In 2019 Solomon Hykes said that if WASM+WASI had existed in 2008, we wouldn't have needed Docker. He was half right. WebAssembly became the runtime, but Docker stayed anyway. It is built on by @pi0, which makes this now practical. 🔥 Read the blog post 👇

35 Comments

Comments from the original post on X (Twitter)

  • Farid Zakaria's profile picture

    @fmzakari

    @Docker you should check that out. ☝️ Might re-imagine how you do Docker on MacOS

    9 likes

  • Ariel Deschapell (compute/acc)'s profile picture

    @NotASithLord

    @solomonstre This is a very similar model I’ve tried to achieve in @getpeerd. The browser is the best sandbox, each tab is a full Linux VM, etc.

    6 likes

  • Farid Zakaria's profile picture

    @fmzakari

    @solomonstre @getpeerd You can even do a container per iframe

    4 likes

  • Ariel Deschapell (compute/acc)'s profile picture

    @NotASithLord

    @solomonstre @getpeerd I feel like that’s more janky though. Tabs do have a lot of overhead so I use lighter isolations like worker threads for things that don’t need a full Linux vm.

  • Farid Zakaria's profile picture

    @fmzakari

    @solomonstre @getpeerd No install needed on MacOS. You have a browser already! You can use the same running browser to cut down on the overhead by a fair amount.

  • Ariel Deschapell (compute/acc)'s profile picture

    @NotASithLord

    @solomonstre @getpeerd I mean in general, a tab is the heaviest isolated context possible in a browser.

  • Arian van Putten's profile picture

    @ProgrammerDude

    @solomonstre Electron for Kubernetes

    4 likes

  • Tim Sonner's profile picture

    @timsonner

    @solomonstre is crazy. Thanks for the heads up!

    2 likes

  • Noel's profile picture

    @noel

    @solomonstre But is it possible to do real work in them? Could you run docker inside them?

    2 likes

  • father stretch my bandz's profile picture

    @MILKANDH3NNY

    @solomonstre going to experiment with this on rex

    1 like

  • Joel | Catscope's profile picture

    @Molo81419714

    @solomonstre Is this single threaded?

  • Watzon's profile picture

    @_watzon

    @solomonstre

  • Farid Zakaria's profile picture

    @fmzakari

    @solomonstre Y NOT?

  • Connie Nicolas's profile picture

    @patriciasedward

    @solomonstre Obviously its performance is way inferior to hypervisor virtual machines

  • Fedor V's profile picture

    @sumkincpp

    @solomonstre great idea, and definitely cool having it as a new container runtime!

  • BearDev's profile picture

    @bearrDev

    @solomonstre 😍😍 i love it

  • Farid Zakaria's profile picture

    @fmzakari

    Did not tag @_pi0_ right -- oops! 🔥 for your work -- check this out.

  • Agent Alpha's profile picture

    @agentalpha_xyz

    @solomonstre Docker stayed because the kernel boundary isn't the only thing it provides. Layer caching and the image spec matter more than the runtime swap for most teams

  • steve's profile picture

    @stevedv_eth

    @solomonstre So this wouldn't work with WebKit, right? And seems like it could work on ChromeOS? 🤔

  • Farid Zakaria's profile picture

    @fmzakari

    @solomonstre Anything with Webassenbly

    2 likes