logoalt Hacker News

macOS Container Machines

652 pointsby timsneathtoday at 12:29 AM238 commentsview on HN

Comments

timsneathtoday at 1:13 AM

To clarify a few comments here: this is not only OCI containers: container machines add support for persistence and filesystem mounting, making container machines a great lightweight Linux environment for developers using macOS. More details here: https://developer.apple.com/videos/play/wwdc2026/389

show 3 replies
qalmakkatoday at 5:55 AM

This is all fine and dandy, but where are the native Darwin Jails Apple? Still scared that people will filling whole rooms of Mac Minis if you allow them to have multiple macOS containers and not only up to two fat VMs per machine?

golem14today at 5:09 AM

I belong to a rare breed of very opportunistic hobby-developers that like to use MacOS but also like to use linux machines or BSDs (rpi etc) sometimes.

I can create docker-images with docker compose, or use something like colima, which this seems to be close to (that should have some advantages over docker, although my hope of circumventing W^X page protection did not pan out).

I was perplexed that the repository does not put these container machines in context. The seem to be close to colima? When should I use which option (docker, collima, container machines ?)

Maybe others wonder too but are ashamed to ask. I have no shame ;)

Thanks for any pointers

show 2 replies
blahgeektoday at 1:13 AM

OrbStack works really well for me. I wonder how it’s compared to this performance wise

show 6 replies
tannhaeusertoday at 6:58 AM

Just to clarify, this requires Mac OS 26 Tahoe for "container" doesn't it? So those of us holding out on Sequoia who can't stand the broken glass UI or what's called and the other undesired features need to stick to Docker desktop.

show 1 reply
WatchDogtoday at 1:32 AM

Do these containers share a common kernel? Or are they each ran in a separate VM?

Edit: It's a VM per container. https://github.com/apple/container/blob/main/docs/technical-...

LaFolletoday at 7:12 AM

Python binary wheels now have to be built for aarch64 for them to work inside the container, unless they are built using the corresponding build system while installing. It is not common for python binary libs to publish arm64 binary wheels, as most often they target amd64.

show 1 reply
Havoctoday at 7:38 AM

Always nice to have more options especially without third party tools

pmontratoday at 7:14 AM

How is this different from Virtualbox or similar products with a shared folder with the host machine? I expected that existing virtualization tech for Macs already did that. Maybe the improvement is having nothing to configure.

By the way, is it headless or can it run a full Linux desktop? Use case: buy a Mac, uninistall whatever can be uninstalled, run the Linux VM as primary desktop forgetting MacOS and without going through Asahi and the incomplete hardware support.

show 1 reply
aspeckt_112today at 7:32 AM

This is pretty cool - being able to bring your own container machine image goes a long way to helping it's adoption.

I started using Colima a couple of years ago because I got bored of how bad Docker Desktop was and just started using the CLI / the "Services" tool window in whatever Jetbrains IDE I was using at the time anyway. I can't see myself moving away from it any time - having multiple profiles is an absolute winner of a feature for me there, but maybe the next time I set up a Mac from scratch I'll have a play with this.

jaimehrubikstoday at 1:05 AM

Will this be able to replace docker desktop an equivalents, removing the expensive Linux VM that runs alongside them?

show 6 replies
rakel_rakeltoday at 5:29 AM

It's funny that the system config page (https://github.com/apple/container/blob/main/docs/container-...) lists pebibytes for RAM configurations... in this day and age where buying a 16GB stick for workstation would cause me to eat instant ramen for a couple of months because my dentist needs an LLM chatbot on their page to stay competitive!

UX wise it looks kinda neat though!

k_bxtoday at 6:28 AM

Most of my team's development happens on beefy desktop machine in incus containers per dev+project (so you run yourname-projname-dev). It has its own tailscale inside so you can open it like regular https website or give to another dev to check out – no need to deploy your branch somewhere, just run it. New dev onboard takes 10 minutes from zero to dev env with VSCode remote development.

I would really love if apple could give inexpensive way to run amd64 containers for situations when dev wants to use their own hardware. We've used LIMA for now, was too much of a hussle. But if there's a more native experience – would give it another try.

0xbadcafebeetoday at 2:17 AM

Anyone know why you would use this instead of QEMU+Lima+Colima+Docker/containerd? The latter works on multiple OSes, has a very large ecosystem of tools, images, documentation, and lets you replace pieces as needed

noobcodertoday at 3:38 AM

The costs are startup time and image compatibility: dockerhub images don't work as machine images because container machine expects systemd

I am trying it on but its brekaing on homebrew 1.0.0. The formula puts plugins at opt/container/libexec/container-plugins/ and the apiserver looks in libexec/container/plugins/

This can be solved through a symlink or smth

show 1 reply
katspaughtoday at 5:25 AM

I've looked into replacing Lima with Apple Containers for https://runmachine.dev.

However, unlike Lima, an Apple Container is not a full VM, so you cannot SSH to it, or forward SSH-agent signatures into a machine.

So it's more of a devcontainer story, which is also a great use case. Nice to see Apple creating tooling around their VZ framework.

Edit: referential clarity.

show 1 reply
shelledtoday at 7:23 AM

I hope this brought us one step closer to being able to run our distros of choice very freely and easily on a Mac.

llimllibtoday at 1:38 AM

Is this new? I thought we had this already

In my testing (iirc) filesystem performance was not good enough to be usable with node/rust dev where lots of small files get stat-ed

update: what's new is the `container machine` subcommand. I went to test it out, but container failed to run at all for me: https://github.com/apple/container/issues/1681

show 2 replies
cogman10today at 2:35 AM

Is there any reason why macOS doesn't try a WSL1 style approach? I get why that didn't fully work out for windows, but it seems like macOS being another *nix would make a lot of what was hard for windows, easy for mac. It seems like it should be possible to run most linux applications natively on macOS with few additional new APIs.

BSD actually has this already.

show 2 replies
mkageniustoday at 3:10 AM

Apple containers are great for providing a sandbox to your AI coding agents

I have made it a MCP so that it's easily discoverable by all the coding agents

https://github.com/instavm/coderunner

cromkatoday at 5:46 AM

So essentially both macOS and Windows now heavily support developing using Linux on them. They can't more openly admit that they are no match for Linux in that area.

There's some clever advertising in it for Linux, if Linux was advertising.

osigurdsontoday at 2:10 AM

I'm surprised they cared enough to do this. I'd still rather use Linux but MacBook value is incredible.

show 1 reply
sdevonoestoday at 7:13 AM

Im running Multipass on M1 for full linux VMs. Are container machines better?

show 1 reply
pjmlptoday at 4:50 AM

With the BUILD and WWDC 2026 announcements, it is the Year of Linux Containers Desktop.

Which for many folks is good enough for what they are doing, thus the status quo of desktop platforms will hardly change for current form factors.

harrouettoday at 5:58 AM

Why did they have to invent their own solution instead of just shipping docker or an equivalent clone ?

vachanmn123today at 3:59 AM

Could this allow us to use proton on mac maybe?

show 2 replies
jzer0cooltoday at 5:01 AM

In the intro it mentions automatically mapping user and home dir. So host files accessible the container. Any settings to control this?

numbsafaritoday at 1:48 AM

Wouldn’t it be nice if services like Codespaces or Coder or Gitlab would allow you to target running on their hosted/integrated platform, or let you launch that same container completely locally? Sometimes I wanna take my “remote” dev environment off-line but still benefit from the integrated UX.

show 3 replies
Joyfieldtoday at 3:01 AM

We have WSL at home.

rickstanleytoday at 2:59 AM

I was wondering if it's possible to have the container volume change to, say, an external drive. I currently use QMEU with qcow2 images to achieve this, works well enough.

show 1 reply
m132today at 2:34 AM

Every time I see Apple flaunting Linux containers I can hardly consider it as anything but admitting defeat. It could easily be Darwin, if they still had the capacity.

show 4 replies
a1otoday at 1:19 AM

With colima I can run AMD64 (x86) Linux containers in my Arm64 too. I think this is strictly for Arm64 Linux VMs, or is there some way to run x86 with this too?

show 2 replies
ChrisArchitecttoday at 1:34 AM

WWDC presentation video:

Discover container machines

https://developer.apple.com/videos/play/wwdc2026/389/

beemboytoday at 6:11 AM

Is this going to be good for AOSP builds on Macs?

ShinyLeftPadtoday at 6:16 AM

Can Podman support these eventually?

zekriocatoday at 5:10 AM

"LXC" for macOS?

konaradditoday at 6:00 AM

Sounds like toolbox or distrobox for Mac!

CSDudetoday at 4:38 AM

I know its not going to be there but wish we had Windows as well.

show 1 reply
commandersakitoday at 1:42 AM

Would be cool if you can redirect USB devices to the VM.

show 3 replies
sachinjosephtoday at 2:00 AM

WSL-like implementation on macOS?

jbverschoortoday at 5:16 AM

Just curious, Apple seems to copy orbstack.. haven’t they made an offer to acquire you guys?

namegulftoday at 1:07 AM

Would be nice if they also support Intel based macs, what prevents?

show 3 replies
itsneulook4today at 5:31 AM

Yeah but sitting in the tweak circles just to gather personal data about people to make them lose their minds is no bueno. Otipolfueriborsklineypoo

tonymettoday at 5:36 AM

What FS mounts the Mac drives into the Linux container ?

phplovesongtoday at 5:21 AM

It was unclear to me, is this a native replacement for docker? I like docker (on mac) but its quite the resource hog.

I usually run like a db, redis, maybe something like rabbitmq/zeromq and have a app that uses these services (makefile/docker-compose).

I would love to switch if this in fact is a lightweight replacement.

t1234stoday at 2:35 AM

Is this similar to what cygwin was for windows? Could this be an alternative to homebrew?

gigatexaltoday at 3:42 AM

I saw the video on this this is distrobox basically for Mac. It’s very cool. Seamless with your local files and the container. I’m very keen to try it.

michaelsbradleytoday at 2:57 AM

Can macOS be run as a container machine on macOS?

show 1 reply
riffictoday at 2:01 AM

darwin containers when?

🔗 View 7 more comments