7 ms·
Okay, the AI stuff is cool, but that "Containerization framework" mention is kinda huge, right? I mean, native Linux container support on Mac could be a game-ch
by dedicate 1y ago
Okay, the AI stuff is cool, but that "Containerization framework" mention is kinda huge, right? I mean, native Linux container support on Mac could be a game-changer for my whole workflow, maybe even making Docker less of a headache.
- thde 1y ago> Meet Containerization, an open source project written in Swift to create and run Linux containers on your Mac. Learn how Containerization approaches Linux containers securely and privately. Discover how the open-sourced Container CLI tool utilizes the Containerization package to provide simple, yet powerful functionality to build, run, and deploy Linux Containers on Mac. https://developer.apple.com/videos/play/wwdc2025/346/ https://developer.apple.com/videos/play/wwdc2025/346/
- shellac 1y ago> Containerization executes each Linux container inside of its own lightweight virtual machine. That’s an interesting difference from other Mac container systems. Also (more obvious) use Rosetta 2.
- selkin 1y agoPodman Desktop, and probably other Linux-containers on macOS tools, can already create multiple VMs, each hosting a subset of the containers you run on your Mac. What seems to be different here, is that a VM per each container is the default, if not only, configuration. And that instead of mapping ports to containers (which was always a mistake in my opinion), it creates an externally routed interface per machine, similar to how it would work if you'd use macvlan as your network driver in Docker. Both of those defaults should remove some sharp edges from the current Linux-containers on macOS workflows.
- WhyNotHugo 1y agoThe ground keeps shrinking for Docker Inc. They sold Docker Desktop for Mac, but that might start being less relevant and licenses start to drop. On Linux there’s just the cli, which they can’t afford to close since people will just move away. Docker Hub likely can’t compete with the registries built into every other cloud provider.
- aequitas 1y agoThere is already a paid alternative, Orbstack, for macOS which puts Docker for Mac to shame in terms of usability, features and performance. And then there are open alternatives like Colima.
- cromka 1y agoHow does it compare to Podman, though?
- worthless-trash 1y agoPodman works absolutely beautifully for me, other platforms, I tripped over weird corner cases.
- marcalc 1y agoUse OrbStack for sometime, made my dev team’s m1 run our kubernetes pods in a much lighter fashion. Love it.
- pjmlp 1y agoThat is why they are now into the reinventing application servers with WebAssembly kind of vibe.
- 9dev 1y agoIt’s really awful. There’s a certain size at which you can pivot and keep most of your dignity, but for Docker Inc., it’s just ridiculous.
- amelius 1y agoThey got Sherlocked.
- 12_throw_away 1y agoFWIW, here are the repos for the CLI tool [1] and backend [2]. Looks like it is indeed VM-based container support (as opposed to WSLv1-style syscall translation or whatever): Containerization provides APIs to: [...] - Create an optimized Linux kernel for fast boot times. - Spawn lightweight virtual machines. - Manage the runtime environment of virtual machines. [1] https://github.com/apple/container https://github.com/apple/container [2] https://github.com/apple/containerization https://github.com/apple/containerization
- cogman10 1y agoWSLv1 never supported a native docker (AFAIK, perhaps I'm wrong?) That said, I'd think apple would actually be much better positioned to try the WSL1 approach. I'd assume apple OS is a lot closer to linux than windows is.
- selkin 1y agoThis doesn't look like WSL1. They're not running Linux syscalls to the macOS kernel, but running Linux in a VM, more like the WSL2[0] approach. [0] https://devblogs.microsoft.com/commandline/announcing-wsl-2/#microsoft-will-be-shipping-a-linux-kernel-with-windows https://devblogs.microsoft.com/commandline/announcing-wsl-2/...
- fiddlerwoaroof 1y agoYeah, it probably would be feasible to dust off the FreeBSD Linux compatibility layer[1] and turn that into native support for Linux apps on Mac. I think Apple’s main hesitation would be that the Linux userland is all GPL. [1]: https://docs.freebsd.org/en/books/handbook/linuxemu/ https://docs.freebsd.org/en/books/handbook/linuxemu/
- leoh 1y agoIf they built as a kernel extension it would probably be okay with gpl. There’s a huge opportunity for Apple to make kernel development for xnu way better. Tooling right now is a disaster — very difficult to build a kernel and test it (eg in UTM, etc.). If they made this better and took more of an OSS openness posture like Microsoft, a lot of incredible things could be built for macOS. I’ll bet a lot of folks would even port massive parts of the kernel to rust for them for free.
- deleted 1y ago[deleted]
- mrbonner 1y agoThe containerization experience on macOS has historically been underwhelming in terms of performance. Using Docker or Podman on a Mac often feels sluggish and unnecessarily complex compared to native Linux environments. Recently, I experimented with Microsandbox, which was shared here a few weeks ago, and found its performance to be comparable to that of native containers on Linux. This leads me to hope that Apple will soon elevate the developer experience by integrating robust containerization support directly into macOS, eliminating the need for third-party downloads.
- mehdibl 1y agoIt's a VM just like WSL... So yeah.
- PhilippGille 1y agoWSL 2 involves a VM. WSL 1, which is still maintained and usable, doesn't. https://learn.microsoft.com/en-us/windows/wsl/compare-versions https://learn.microsoft.com/en-us/windows/wsl/compare-versio...
- selkin 1y agoIt looks like nothing here is new: we have all the building blocks already. What Apple done is packaged it all nicely, which is nothing to discount: there's a reason people buy managed services over just raw metal for hosting their services, and having a batteries included development environment is worth a premium over the need to assemble it on your own.
- rcarmo 1y agoI’ve been using Colima for a long while with zero issues, and that leverages the older virtualization framework.
- deleted 1y ago[deleted]
- deleted 1y ago[deleted]
- marviel 1y agoyeah -- I saw it's built on "open source foundations", do you know what project this is?
- WD-42 1y agoShould be easy enough, look for the one with upstream contributions from Apple. Oh, wait.
- niteshade 1y agoSeems to be this: https://github.com/apple/containerization https://github.com/apple/containerization
- sho_hn 1y agovminitd is the most interesting part of this.
- underdeserver 1y agoThe CLI sure looks a lot like Docker.
- cmiles74 1y agoBeing able to drop Docker Desktop would be great. We're using Podman on MacOS now in a couple places, it's pretty good but it is another tool. Having the same tool across MacOS and Linux would be nice.
- 9dev 1y agoMigrate to Orbstack now, and get a lot of sanity back immediately. It’s a drop-in replacement, much faster, and most importantly, gets out of your way.
- mgreg 1y agoThere's also Rancher Desktop (https://rancherdesktop.io/ https://rancherdesktop.io/). Supports moby and containerd; also optionally runs kubernetes.
- paxys 1y agoIt's impossible to have "native" support for Linux containers on macOS, since the technology inherently relies on Linux kernel features. So I'm guessing this is Apple rolling out their own Linux virtualization layer (same as WSL). Probably still an improvement over the current mess, but if they just support LXC and not Docker then most devs will still need to install Docker Desktop like they do today.
- bandoti 1y agoWhat about macOS being derived from BSD? Isn’t that where containers came from: BSD jails? I know the container ecosystem largely targets Linux just curious what people’s thoughts are on that.
- sarlalian 1y agoAnother really good read about containers, jails and zones. https://blog.jessfraz.com/post/containers-zones-jails-vms/ https://blog.jessfraz.com/post/containers-zones-jails-vms/
- hangonhn 1y agoConceptually similar but different implementations. Containers uses cgroups in Linux and there is also file system and network virtualization as well. It's not impossible but it would require quite a bit of work.
- McAlpine5892 1y agoBSD jails are architected wholly differently from what something like Docker provides. Jails are first-class citizens that are baked deep into the system. A tool like Docker relies using multiple Linux features/tools to assemble/create isolation. Additionally, iirc, the logic for FreeBSD jails never made it into the Darwin kernel. Someone correct me please.
- AdieuToLogic 1y ago> BSD jails are architected wholly differently from what something like Docker provides. > Jails are first-class citizens that are baked deep into the system. Both very true statements and worth remembering when considering: > Additionally, iirc, the logic for FreeBSD jails never made it into the Darwin kernel. You are quite correct, as Darwin is is based on XNU[0], which itself has roots in the Mach[1] microkernel. Since XNU[0] is an entirely different OS architecture than that of FreeBSD[3], jails[4] do not exist within it. The XNU source can be found here[2]. 0 - https://en.wikipedia.org/wiki/XNU https://en.wikipedia.org/wiki/XNU 1 - https://en.wikipedia.org/wiki/Mach_(kernel) https://en.wikipedia.org/wiki/Mach_(kernel) 2 - https://github.com/apple-oss-distributions/xnu https://github.com/apple-oss-distributions/xnu 3 - https://cgit.freebsd.org/src/ https://cgit.freebsd.org/src/ 4 - https://man.freebsd.org/cgi/man.cgi?query=jail&apropos=0&sektion=0&manpath=FreeBSD+14.3-RELEASE&arch=default&format=html https://man.freebsd.org/cgi/man.cgi?query=jail&apropos=0&sek...
- wmf 1y agoThey Sherlocked OrbStack.
- ale 1y agoThat's a good thing though right?
- 12_throw_away 1y agoWell, Orbstack isn't really anything special in terms of its features, it's the implementation that's so much better than all the other ways of spinning up VMs to run containers on macos. TBH, I'm not 100% sure 2025 Apple is capable anymore of delivering a more technically impressive product than orbstack ...
- avtar 1y agoI thought it's more like Colima than OrbStack https://github.com/abiosoft/colima https://github.com/abiosoft/colima
- pjmlp 1y agoMicrosoft did it first to Virtual Box / VMWare Workstation thought. That is what I have been using since 2010, until WSL came to be, it has been ages since I ever dual booted.
- dang 1y agoOk, I've squeezed containerization into the title above. It's unsatisfactory, since multiple announced-things are also being discussed in this thread, but "Apple's kitchen-sink announcement from WWDC this year" wouldn't be great either, and "Apple supercharges its tools and technologies for developers to foster creativity, innovation, and design" is right out. https://hn.algolia.com/?dateRange=all&page=0&prefix=true&sort=byDate&type=comment&query=corporate%20press%20release%20by:dang https://hn.algolia.com/?dateRange=all&page=0&prefix=true&sor...
- bearjaws 1y agoTitle makes sense to me. It seems like a big step in the right direction to me. It's hard to tell if its 100% compatible with Docker or not, but the commands shown are identical (other than swapping docker for container). Even if its not 100% compatible this is huge news.
- deleted 1y ago[deleted]
- LoganDark 1y agoSmall nitpick but "Announces" being capitalized looks a bit weird to me.
- DrBenCarson 1y agoOrbstack has been pretty bulletproof
- v5o 1y agoOrbstack is not free for commercial use https://orbstack.dev/pricing https://orbstack.dev/pricing Orbstack owners are going to be fuming at this news!
- mmcnl 1y agoIt's cool but also not as revolutionary as you make it sound. You can already install Podman, Orbstack or Colima right? Not sure which open-source framework they are using, but to me it seems like an OS-level integration of one of these tools. That's definitely a big win and will make things easier for developers, but I'm not sure if it's a gamechanger.
- rnubel 1y agoAll those tools use a Linux VM (whether managed by Qemu or VZ) to run the actual containers, though, which comes with significant overhead. Native support for running containers -- with no need for a VM -- would be huge.
- mmcnl 1y agoYes, it seems like it's actually a more refined implementation than what currently exists. Call me pleasantly surprised!
- SpaceNugget 1y agothere's still a VM involved to run a Linux container on a Mac. I wouldn't expect any big performance gains here.
- jemmyw 1y agoStill needs a VM. It'll be running more VMs than something like orbstack, which I believe runs just one for the docker implementation. Whether that means better or worse performance we'll find out.
- timsneath 1y agoThe framework that container uses is built in Swift and also open sourced today, along with the CLI tool itself: https://github.com/apple/containerization https://github.com/apple/containerization
- deleted 1y ago[deleted]