Containerization is a Swift package for running Linux containers on macOS

github.com

726 points by gok a day ago


commandersaki - a day ago

Video about it here: https://developer.apple.com/videos/play/wwdc2025/346/

Looks like each container gets its own lightweight Linux VM.

Can take it for a spin by downloading the container tool from here: https://github.com/apple/container/releases (needs macOS 26)

julik - 8 hours ago

Really curious how this improves the filesystem bridging situation (which with Docker Desktop was basically bouncing from "bad" to "worse" and back over the years). Or whether it changes it at all.

sangeeth96 - a day ago

The CLI from the press release/WWDC session is at https://github.com/apple/container which I think is what many like myself would be interested in. I was hoping this'd be shipped with the newest Xcode Beta but that doesn't seem to be the case. Prebuilt packages are missing at the moment but they are working on it: https://github.com/apple/container/issues/54

spockz - 20 hours ago

At first I thought this sounded like a blend of the virtualisation framework with a firecracker style lightweight kernel.

This project had its own kernel, but it also seems to be able to use the firecracker one. I wonder what the advantages are. Even smaller? Making use of some apple silicon properties?

Has anyone tried it already and is it fast? Compared to podman on Linux or Docker Desktop for Mac?

candiddevmike - a day ago

Wonder how Docker feels about this. I'd assume a decent amount of Docker for Desktop is on Mac...

pxc - a day ago

This is the most surprising and interesting part, imo:

> Contributions to `container` are welcomed and encouraged. Please see our main contributing guide for more information.

This is quite unusual for Apple, isn't it? WebKit was basically a hostile fork of KHTML, Darwin has been basically been something they throw parts of over the wall every now and then, etc.

I hope this and other projects Apple has recently put up on GitHub see fruitful collaboration from user-developers.

I'm a F/OSS guy at heart who has reluctantly become a daily Mac user due to corporate constraints that preclude Linux. Over the past couple of years, Apple Silicon has convinced me to use an Apple computer as my main laptop at home (nowadays more comparable, Linux-friendly alternatives seem closer now than when I got my personal MacBook, and I'm still excited for them). This kind of thing seems like a positive change that lets me feel less conflicted.

Anyway, success here could perhaps be part of a virtuous cycle of increasing community collaboration in the way Apple engages with open-source. I imagine a lot of developers, like me, would both personally benefit from this and respect Apple for it.

arianvanp - an hour ago

Them synthesizing an EXT4 file system from tarball layers instead of something like EROFS is so extremely odd. Really really strange design.

pmarreck - 8 hours ago

So the x64 containers will run fine on Apple Silicon?

sho_hn - a day ago

So both of the other big two desktop OSs now have official mechanisms to run Linux VMs to host Linux-native applications.

You can make some kind of argument from this that Linux has won; certainly the Linux syscall API is now perhaps the most ubiquitous application API.

sitole - a day ago

Has anyone tried turning on nested virt yet? Since the new container CLI spins each container in its own lightweight Linux VM via Virtualization.framework, I’m wondering whether the framework will pass the virtualization extensions through so we can modprobe kvm inside the guest.

Apple’s docs say nested virtualization is only available on M3-class Macs and newer (VZGenericPlatformConfiguration.isNestedVirtualizationSupported) developer.apple.com, but I don’t see an obvious flag in the container tooling to enable it. Would love to hear if anyone’s managed to get KVM (or even qemu-kvm) running inside one of these VMs.

qalmakka - 13 hours ago

that's nice and all - but where are the native Darwin containers? Why is it ok for Apple to continue squeezing people with macOS CI jobs to keep buying stupid Mac Minis to put in racks only to avoid a mess? Just pull FreeBSD jails!

roberttod - a day ago

I need to look into this a little more, but can anyone tell me if this could be used to bundle a Linux container into a MacOS app? I can think of a couple of places that might be useful, for example giving a GPT access to a Linux environment without it having access to run root CLI commands.

paxys - a day ago

Thinking more about this a bit, one immediate issue I see with adoption is that the idea of launching each container in its own VM to fully isolate it and give it its own IP, while neat, doesn't really translate to Linux or Windows. This means if you have a team of developers and a single one of them doesn't have a mac, your local dev model is already broken. So I can't see a way to easily replace Docker/Compose with this.

SamuelAdams - 21 hours ago

I wonder if this will dramatically improve gaming on a Mac? Valve has been making games more reliable due to Steam Deck, and gaming on Linux is getting better every year.

Could games be run inside a virtual Linux environment, rather than Apple’s Metal or similar tool?

This would also help game developers - now they only need to build for Windows, Linux, and consoles.

solomatov - a day ago

Does anyone know whether they have optimized memory management, i.e. virt machine not consuming more RAM than required?

jbverschoor - a day ago

In my opinion this is a step towards the Apple cloud hosting.

They have Xcode cloud.

The $4B contract with Amazon ends, and it’s highly profitable.

Build a container, deploy on Apple, perhaps with access to their CPU’s

newman314 - a day ago

I wonder how this will affect apps like Orbstack

cedws - 19 hours ago

Forget Linux containers on Mac, as far as I’m concerned that’s already a solved problem. What about Mac containers? We still don’t have a way to run a macOS app with its own process namespace/filesystem in 2025. And with all this AI stuff, there’s a need to minimise blast radius of a rogue app more than ever.

outcoldman - a day ago

Not sure what exactly is happening, but feels very slow. Builds are taking way longer. Tried to run builder with -c and -m to add more CPU and memory.

- 10 hours ago
[deleted]
rfoo - a day ago

This does not support memory ballooning yet. But they have documented custom kernel support, so, goodbye OrbStack.

dang - 19 hours ago

Related ongoing threads:

Container: Apple's Linux-Container Runtime - https://news.ycombinator.com/item?id=44229239 - June 2025 (11 comments)

Apple announces Foundation Models and Containerization frameworks, etc - https://news.ycombinator.com/item?id=44226978 - June 2025 (345 comments)

(Normally we'd merge them but it seems there are significant if subtle differences)

filleokus - a day ago

Looks cool! In the short demo [0] they mention "within a few hundred milliseconds" as VM boot time (I assume?). I wonder how much tweaking they had to do, because this is using the Virtualization.framework, which has been around a while and used by Docker dekstop / Colima / UTM (as an option).

I wonder what the memory overhead is, especially if running multiple containers - as that would spin up multiple VM's.

[0]: https://developer.apple.com/videos/play/wwdc2025/346 10:10 and forwards

miovoid - 20 hours ago

I hope it will support nested virtualization.

mustache_kimono - 18 hours ago

This is great. Also about time, etc.

But is it also finally time to fix dtrace on MacOS[0]?

[0]: https://developer.apple.com/forums/thread/735939?answerId=76...

xmorse - 5 hours ago

Is this basically the same thing as Orbstack?

mattclarkdotnet - 19 hours ago

Spoiler alert: it’s not containers.

It’s some nice tooling wrapped around lightweight VMs, so basically WSL2

sampton - a day ago

Apple please expose GPU cores to the VMs.

fralix - 8 hours ago

And when native OCI macos container engine native ?!

sirjaz - 4 hours ago

This is just wsl2 from Microsoft, albeit with an Apple spin

joshdavham - a day ago

Will this likely have any implications for tools like ‘act’ for running local GitHub actions? I’ve had some trouble running act on apple silicon in the past.

pmarreck - 8 hours ago

Prefer the Nix approach unless a container approach is absolutely necessary.

peterpost2 - 15 hours ago

Terrible name. Look like a neat product though!

m3kw9 - a day ago

I’m already running docker on macOS what’s the difference?

omeid2 - 15 hours ago

This is really bad news for Linux on Desktop.

Many developers I know don't use MacOS mainly because they depend on containers and virtualisation is slow, but if Apple can pull off efficient virtualisation and good system integration (port mapping, volumes), then it will eat away at a large share of linux systems.

sneak - a day ago

Surprising to me that this uses swift CLI tools (free software) and make, not Xcode.

jamie0 - a day ago

disappointing theres still no namespacing in darwin for macos containers. would be great to run xcodebuild in a container

- 19 hours ago
[deleted]
ANGXL123 - 20 hours ago

[dead]

9d - a day ago

[flagged]

rvz - a day ago

Requires an Apple Silicon Mac to run.

> You need an Apple silicon Mac to build and run Containerization.

> To build the Containerization package, your system needs either:

> macOS 15 or newer and Xcode 26 Beta

> macOS 26 Beta 1 or newer

Those on Intel Macs, this is your last chance to switch to Apple Silicon, (Sequoia was the second last)[0] as macOS Tahoe is the last version to support Intel Macs.

[0] https://news.ycombinator.com/item?id=41560423

- a day ago
[deleted]
justinzollars - a day ago

I'm excited to run Systemd on mac!

IshKebab - a day ago

Getting worried about WSL I see!

m463 - a day ago

I think this is purely a checkbox feature to compare against wsl. Otherwise apple just wouldn't get involved (not engineers, who would do lots of good things, but management that let this out)

tgma - 19 hours ago

I'm glad this will kill the Docker Desktop clone business on Mac. Friend company got hit by using one of the free ones and got rug pulled by them.

bdcravens - a day ago

Cool, but until someone (Apple or otherwise) implements Docker Compose on top of this, it's unlikely to see much use.

throwaway1482 - 8 hours ago

If they're going this way, why not just replace the macOS kernel (XNU) with Linux? They'll get so much more.