16 ms·
macOS Container Machines
- jzer0cool 3mo agoIn the intro it mentions automatically mapping user and home dir. So host files accessible the container. Any settings to control this?
- musicale 3mo agoI can't help but think it was a mistake for "Open" containers to be Linux-only. Why can't we have POSIX containers, for example?
- m463 3mo agolooks like apple wrote a native docker in swift you can now run linux containers on your mac ... but it could be better. what about (totally contrived): FROM apple/macos:10.11.6 RUN xcodebuild -project myapp.xcodeproj -scheme MyScheme -configuration Release
- trollbridge 3mo agoClose - but it would be more like this: services: macos: image: dockurr/macos container_name: macos environment: VERSION: "15" (And indecently slow.)
- webXL 3mo agoNice, but expect to page through a few pages of ToS during the build
- m463 3mo agolol ENV XCODE_FRONTEND=unattended ENV XCODE_LICENSES=accept,firstborn,applepay,appleid=sjobs@me.com
- deleted 3mo ago[deleted]
- jadar 3mo agoi wish!
- windowliker 3mo agoIt would be wonderful if this ran on older versions of macOS, but according to the README they only support 26.
- m463 3mo agoyou do not understand... Not run on, run IN :) I'm saying the older version of macos could build/run INSIDE the container just like on a ubuntu 24.04 system you can do: FROM ubuntu:16.04 or docker run ubuntu:16.04 and though I haven't tried it, I believe docker can do arm in x86 using an emulator (like rosetta)
- MBCook 3mo agoYou can already run older versions of macOS inside a VM on macOS. So it seems like in theory that should be doable if someone just made the container images right?
- windowliker 3mo agoOh right. I don't see Apple having any interest in supporting that given their current trajectory.
- egorfine 3mo ago> FROM apple/macos:10.11.6 Yeah I was working on that, created a prototype. I don't see a business in it, so abandoned.
- jaimehrubiks 3mo agoWill this be able to replace docker desktop an equivalents, removing the expensive Linux VM that runs alongside them?
- trollbridge 3mo agoThat sure would be nice. I seem to rm -rf ~/.colima every few days.
- thejazzman 3mo agoIt mostly removes the big shared background VM and replaces it with smaller, more isolated Apple-native VMs. I did an experiment migrating my Podman workload to Apple's container @ https://gist.github.com/jmonster/39e14585e107dbf990a90966c0f84427 https://gist.github.com/jmonster/39e14585e107dbf990a90966c0f... TL;DR reduces ram/storage usage; minimizes it's existence
- deathanatos 3mo agoHow does that work, realistically? > Memory defaults to half of host memory That's the most expensive part of the whole transaction, b/c AFAIK, RAM is then dedicated to the VM. It can be swapped out, I suppose, but that's not great.
- MBCook 3mo agoCGamesPlay said above its balloon memory so it won’t use all that memory by default, but it can’t release balloon memory yet.
- nozzlegear 3mo agoNice, thanks for this. My plan is to swap over to Apple's containers for local dev, and keep using podman quadlets in production.
- usernametaken29 3mo agoMy first thought as well, docker desktop overhead is pretty bad, would be awesome to see this land natively in DD. By my estimate this could happen, seeing as Docker has historically tried to improve performance but quickly had to accept platform limitations… would only be natural to settle DD over to containers
- namegulf 3mo agoWould be nice if they also support Intel based macs, what prevents?
- danhon 3mo agoAllocation of a finite amount of engineering resources.
- joshuat 3mo agoAnd a legitimate business interest to further incentivize the adoption of Apple Silicon devices. Same with Rosetta deprecation after macOS 27.
- JumpCrisscross 3mo ago> a legitimate business interest to further incentivize the adoption of Apple Silicon devices Apple has never been about supporting legacy platforms with new features. And with over a quarter of revenue and two fifths of Apple's gross profits coming from services, one could argue the incentives run either way.
- ForOldHack 3mo agoRosetta 2. Rosetta was for Intel to emulate 68k, now if you could get Rosetta 2 to run under Rosetta, then you could run 68k, on an ARM, and if you could get the apple ][ emulator...
- weikju 3mo agoRosetta 1 was for emulating PPC not 68k
- ForOldHack 3mo ago[dead]
- crote 3mo ago
- blahgeek 3mo agoOrbStack works really well for me. I wonder how it’s compared to this performance wise
- kdrag0n 3mo ago(OrbStack dev here.) Instead of Virtualization.framework, we have a custom Rust virtualization stack with custom devices and protocols for things like filesystem sharing. It's a highly optimized vertically integrated stack specifically for running our Linux machines and containers. Our biggest perf/resource gain is dynamic memory, which reduces memory usage a lot by releasing unused memory back to macOS. Nothing else supports this, including Containerization. I gave Container Machines a try and it seems to be much closer to OCI containers with a default bind mount than OrbStack machines. It has fewer integrations and doesn't run systemd or any other normal init system, so it's hard to run services.
- egernst 3mo agoThanks for the info kdrag0n! Big fan of OrbStack; good call out on dynamic memory. If the guest image has /sbin/init, we use that. We'd recommend using a base image for the guest that includes systemd. ie: https://github.com/apple/container/blob/main/docs/container-machine.md#bring-your-own-container-machine-image https://github.com/apple/container/blob/main/docs/container-...
- kxxx 3mo agoApple says that `systemctl` is supported... hmm am I missing something? "Real Linux services for testing. Run a database or whatever your stack needs as a system service — systemctl start postgresql works on images with systemd installed."
- kdrag0n 3mo agoGood catch, I tried the example alpine commands and there was no init system. Makes sense if it's based on OCI images
- timsneath 3mo agoTo 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 https://developer.apple.com/videos/play/wwdc2026/389
- Onavo 3mo agoAh, the Darwin/BSD Subsystem for Linux.
- CGamesPlay 3mo agoNot quite, it’s still a VM. And while it supports virtio balloon for growing RAM, it doesn’t yet support releasing that RAM back to the host. And there isn’t a convenient way to shrink the sparse disk images as they grow yet, either.
- musicale 3mo agomacOS is basically already a POSIX subsystem for macOS, which is already a UNIX™. But (some) people still criticize it because it's not Linux or FreeBSD (though it is closer to the latter than the former).
- AlexB138 3mo agoIsn't the Windows subsystem for Linux (the reference there) also a VM?
- a1o 3mo agoWith 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?
- frizlab 3mo agoRosetta should be supported
- whycombinetor 3mo agoNot for long!
- commandersaki 3mo agoVery unlikely to lose support for Rosetta for Linux. Maybe just Rosetta 2 for mac apps.
- whycombinetor 3mo agoOh, didn't read that part of the news. That's great. Ability to run x64 docker images seminatively was one of the big reasons I jumped to the M1 platform when it came out and I was baffled that they would remove it.
- cpach 3mo agoWhat’s the performance when you do that?
- jdub 3mo agoYou can run amd64 binaries inside an aarch64 Linux virtual machine. Although they're not supporting Rosetta for macOS apps from macOS 27, the Rosetta support in Virtualization Framework will remain.
- andor 3mo agoDid Apple officially confirm this or is it based on the statement regarding games?
- sourcegrift 3mo ago[flagged]
- hollerith 3mo agoSadly, Linux is much much less secure.
- pixelatedindex 3mo agoThis claim is so absurd that I need some sources.
- JumpCrisscross 3mo agoLinux is easier to misconfigure. Macs resists being misconfigured insecurely. At their tightest, I'd say neither is fundamentally more insecure than the other. (The exception would be M5-based Macs, which come with MIE. Though that isn't a macOS vs Linux thing per se.)
- armadyl 3mo agoThis is incorrect macOS is fundamentally more secure than desktop Linux operating systems and it isn't particularly close. No amount of Linux hardening will get a system even close to an M-chip Mac. Software insecurities aside, desktop Linux OS systems have almost none of the hardware-backed security benefits that Macs do.
- TimTheTinker 3mo agoAt some point, lack of security becomes a feature. A fully secure, locked-down, T2 attested macOS is able to be controlled not just by Apple, but by increasingly evil governments, with no recourse available to users.
- armadyl 3mo ago
- WatchDog 3mo agoDo 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-overview.md https://github.com/apple/container/blob/main/docs/technical-...
- leshenka 3mo agoIsn't it wasteful? I know it's a "tiny" vm but still is a vm
- pjmlp 3mo agoSee Kata containers. https://katacontainers.io/ https://katacontainers.io/ For ultimate security, containers alone aren't enough. Windows is also having a similar feature on top of WSL, announced at BUILD. https://github.com/microsoft/mxc https://github.com/microsoft/mxc
- ChrisArchitect 3mo agoWWDC presentation video: Discover container machines https://developer.apple.com/videos/play/wwdc2026/389/ https://developer.apple.com/videos/play/wwdc2026/389/
- llimllib 3mo agoIs 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 https://github.com/apple/container/issues/1681
- kdrag0n 3mo agoCurious if you've tried OrbStack? There's always more work to do (test workloads appreciated!) but we've put a lot of effort into optimizing for small files and other common developer workloads in OrbStack's customized filesystem sharing protocol (not standard virtiofs).
- ahknight 3mo agoPodman is on macOS, FWIW. Uses the existing container framework to run the machine already. Root-full or not.
- dchest 3mo agoDid you use their volumes for node_modules or a shared dir? I mounted the whole project directory (with node_modules) inside the container and it seems to work fine (MBA M1 8 GB RAM).
- Barbing 3mo agoI found it hard to believe I didn’t have a simple way of staying safe by installing an arbitrary application in a sandbox on macOS. (Restoring using Time Machine doesn’t count! :) ) This is a step in the right direction but requires any given developer’s buy-in first, right?
- commandersaki 3mo agoWould be cool if you can redirect USB devices to the VM.
- kdrag0n 3mo agoWe just released this in OrbStack :) https://docs.orbstack.dev/features/usb https://docs.orbstack.dev/features/usb Blog post soon
- commandersaki 3mo agoYeah I find this useful for redirecting storage/sdcard*, so you can format linux filesystems or use other tools. * need a usb sdcard reader for macbook pro cause the builtin is not usb)
- kdrag0n 3mo agoWe're working on block device passthrough for the builtin SD reader.
- calebm 3mo agoThank you for sharing this - I looked into OrbStack a few months ago, and this was the reason I didn't use it (as my primary purpose was to have an external wifi adapter for wifi pwnage).
- blackqueeriroh 3mo agoWhat happened to Orbstack for like 9 months until earlier this year? Suddenly everything went silent for a bit and I was pretty concerned. Glad y’all are back!!!!
- egernst 3mo agoAgreed! There's some good improvements around Accessory Access in virtualization framework this year also - checkout: https://developer.apple.com/videos/play/wwdc2026/224/?time=274 https://developer.apple.com/videos/play/wwdc2026/224/?time=2...
- numbsafari 3mo agoWouldn’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.
- CGamesPlay 3mo agoIf you can express that operation in Terraform, then Coder would let you do that. First problems I can think of are connectivity from the Coder provisioner to your local machine (Tailscale? Local?), and migrating disk images if you want to actually switch a workspace between environments (local provisioner could do this, but no matter what it’ll be slow and janky).
- RossBencina 3mo agoThis exists. It's called devcontainers and there is a cli for managing it locally. https://github.com/devcontainers/ https://github.com/devcontainers/ https://containers.dev/ https://containers.dev/
- jayd16 3mo agoMaybe I don't understand but why doesn't Gitlabs self hosted setup work?
- sachinjoseph 3mo agoWSL-like implementation on macOS?
- deleted 3mo ago[deleted]
- riffic 3mo agodarwin containers when?
- riffic 3mo agohad to come back because there actually seems to be a project to build this: https://github.com/darwin-containers https://github.com/darwin-containers However it requires disabling SIP, so that's unfortunately a non-starter for anything serious today.
- osigurdson 3mo agoI'm surprised they cared enough to do this. I'd still rather use Linux but MacBook value is incredible.
- marssaxman 3mo agoI'd always rather use Linux, but sometimes your employer gives you a MacBook. I might use this tool.
- 0xbadcafebee 3mo agoAnyone 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
- CarlitosHighway 3mo agoFrom a layman's POV ("I just want to run my containers I need for dev work"), there's no point in switching to this for now. It's just cool that Apple cares enough about containers and might come up with an Apple-like built-in solution some day, this is the groundwork. I'd stick to Colima, or Orbstack if you trust them enough to not do a rug-pull once their users are reliant on them enough to pay any amount.
- lxgr 3mo agoQEMU has worse performance than Apple's native virtualization framework on macOS, for one thing. That said, Lima supports the latter as well.
- einsteinx2 3mo agoYeah I was gonna say I use Colima with Apple’s virtualization framework (it’s not the default for some reason but it’s a single command line flag), and found it works better than QEMU (better performance and resolved some bugs I was running into with the Supabase docker stack)
- m132 3mo agoEvery 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.
- groundzeros2015 3mo agoJust change 30 years of internet history
- al_borland 3mo agoFor what it's worth, the first web server was a NeXTcube, and NeXTSTEP was the foundation of macOS.
- ahknight 3mo ago[dead]
- tw04 3mo agoWhat is the alternative? They gave up the server market a decade ago and before that they barely actually supported it. If they were to support darwin containers, what would be the point? Literally nobody would build to it, Linux won.
- riffic 3mo ago> Literally nobody would build to it because nobody does ci/cd against macOS or iOS apps right?
- tw04 3mo agoAnd what is the revenue stream tied to that ci/cd pipeline they aren’t capturing today? Apple would sell less hardware in order to…? There aren’t any app developers avoiding the Apple ecosystem because there aren’t Darwin containers. They don’t sell server hardware and by all accounts have no intention of ever reentering that space. So they’d spend a bunch of developer cycles to reduce their own revenue stream with no apparent upside beyond “goodwill” which they’ve never been overly concerned about.
- t1234s 3mo agoIs this similar to what cygwin was for windows? Could this be an alternative to homebrew?
- cogman10 3mo agoIs 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.
- twoodfin 3mo agoWhat would be the advantages over a VM infrastructure Apple needs anyway and that has a much simpler, more stable “ABI” compared to the Linux kernel?
- cogman10 3mo agoPotentially faster application execution along much lower memory requirements. In the case of docker, even a possibility of shared library loading further reducing runtime costs (For example, containers based on the same base image could load glibc into memory only once). There's also simply the possibility of using linux software directly in macos without doing OS dependent changes to the software.
- MBCook 3mo agoYeah. But in exchange it’s a lot of work to keep up with. For GUI stuff you’re now having to have some sort of Wayland layer/driver. Running VMs is really really easy and low maintenance demand on Apple. And it’s guaranteed compatibility. Wasn’t compatibility what really sunk WSL1?
- skissane 3mo ago> Wasn’t compatibility what really sunk WSL1? Yes, but a big part of the problem with WSL1 was the size of the conceptual gap between POSIX and Windows NT that WSL1 had to bridge. An “MSL1” would likely have fewer problems because the gap between macOS and Linux is smaller, given they are both POSIX The other thing Apple could potentially do, is add Linux-compatible APIs to macOS. IBM wanted to support Kubernetes on their z/OS mainframe operating system, so they implemented on it a clone of Linux namespace APIs, e.g. unshare. Then we could have macOS nodes in a K8S cluster-which might actually be useful for some people, e.g. if you have a Jenkins CI farm, the Linux nodes can run on K8S, but currently macOS nodes (which you need if you are targeting iOS or macOS) can’t, they have to be bare metal or VMs. More Linux-macOS source compatibility would also benefit macOS by making it less work to port software to it from Linux
- jwlake 3mo agohaven't we had hypervisor.framework for like years now?
- michaelsbradley 3mo agoCan macOS be run as a container machine on macOS?
- blackqueeriroh 3mo agoYes
- MBCook 3mo agoYep. For a few years. And they keep enhancing it too. It’s the only legal way to do so, due to the software license on MacOS.
- rickstanley 3mo agoI 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.
- opengears 3mo agoAlso works with UTM.
- Joyfield 3mo agoWe have WSL at home.
- mkagenius 3mo agoApple 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 https://github.com/instavm/coderunner
- xiaodai 3mo agoso basically dockers
- noobcoder 3mo agoThe 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
- masklinn 3mo ago> dockerhub images don't work as machine images because container machine expects systemd Are you sure about that? A few comments above a commenter states that they don’t run inits at all (because they ran alpine), multiple people replied that it works fine if you give it an image with an init, and they acknowledged their error.
- gigatexal 3mo agoI 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.
- vachanmn123 3mo agoCould this allow us to use proton on mac maybe?
- xd1936 3mo agoThis is hilarious. Next year, the PC gamers will be saying "The best Windows gaming experience is win32 on Linux on macOS Containers".
- aurareturn 3mo agoThe fastest (Geekbench 6) Windows laptop in the world is actually an M5 Max Macbook running Parallels running Windows.
- Gigachad 3mo agoI mean at this point literally anything works better than Windows.
- pjmlp 3mo agoExcept game development, hence Proton.
- asimovDev 3mo agoit always gets a sad chuckle out of me to hear that some native linux ports run worse than the windows version under proton. i think valve games are like that (l4d2 for example) and recently I think Hollow Knight: Silksong was like that
- Gigachad 3mo agoI think at this point native linux ports are somewhat a thing of the past. The problem was that the ports were usually contracted out to a 3rd party and rarely updated or cared for that much. There was also the issue that they often relied on dynamically linked libraries provided by the distro rather than static linked libraries bundled with the game. So stuff that did work would break on distro updates. The proton model has the benefit that bugs on linux can be fixed by Valve and the Wine community. While bugs in an official linux port can only be fixed by the game publisher which rarely happened. There also seems to be virtually no downsides to running a Windows game in Proton. These days I don't even bother checking the Wine DB or proton rating because unless the game is deliberately blocking linux via anti cheat, it will just work.
- CSDude 3mo agoI know its not going to be there but wish we had Windows as well.
- Cadwhisker 3mo agoInstall Windows 11 ARM under the macOS "UTM" App. This lets you run x86 Windows programs on Apple silicon.
- pjmlp 3mo agoWith 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.
- golem14 3mo agoI 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
- klohto 3mo agohttps://github.com/apple/container/blob/main/docs/technical-overview.md https://github.com/apple/container/blob/main/docs/technical-... read documentation mr. rare breed
- startakovsky1 3mo agoLike, this doesn’t answer when to use this vs Docker. Any reference there?
- happyopossum 3mo agoThis is not the apple container framework / that’s the docker alternative. This is a project to easily run full Linux machines in macOS containers.
- cowsandmilk 3mo agoUse this because docker has very problematic licensing on MacOS.
- golem14 3mo ago[flagged]
- djsavvy 3mo agoWhy try to circumvent W^X page protection? Some sort of self-modifying program without extra pointer indirections?
- zekrioca 3mo ago"LXC" for macOS?
- jbverschoor 3mo agoJust curious, Apple seems to copy orbstack.. haven’t they made an offer to acquire you guys?
- phplovesong 3mo agoIt 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.
- masklinn 3mo agoOn the one hand yes, on the other hand there are already multiple lighter alternatives to docker on mac.
- happyopossum 3mo agoA native replacement for docker came last year with Apple Containers- this extends that.
- lzwjava 3mo ago[flagged]
- katspaugh 3mo agoI've looked into replacing Lima with Apple Containers for https://runmachine.dev 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.
- binsquare 3mo agoMight consider https://github.com/smol-machines/smolvm https://github.com/smol-machines/smolvm It's a full vm
- itsneulook4 3mo agothat thepolfus and the Otis and the bors and the alschweid and pretty much anyone in old the the gs gangstalk or just getting people info to sit in the same room as them to try and makr them go crazy deserve to brave hart quartered
- khazhoux 3mo agotry unplugging your keyboard and then plugging it back in
- rakel_rakel 3mo agoIt's funny that the system config page (https://github.com/apple/container/blob/main/docs/container-system-config.md 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!
- borborigmus 3mo agoSigned in just to say LoL at the dentist comment.
- itsneulook4 3mo agoYeah but sitting in the tweak circles just to gather personal data about people to make them lose their minds is no bueno. Otipolfueriborsklineypoo
- tonymet 3mo agoWhat FS mounts the Mac drives into the Linux container ?
- cromka 3mo agoSo 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.
- rahkiin 3mo agoI’d argue they both admin that Linux servers are the target for a lot of applications to run on. Not to develop on.
- plutokras 3mo agoEnterprises would do anything to develop on Linux except using an actual Linux distro.
- neop1x 3mo agoA lot of devs needs to use linux but they still use it just as a VM (Mac) or in some kind emulation (WSL). How pathetic.
- cromka 3mo agoIf they need to, it's because it's their work computers. Otherwise it's a choice.
- nozzlegear 3mo agoWhat's pathetic?
- artistonn 3mo agoLinux also can't openly admit that it's no match for macOS/Windows on the desktop, which is why we have this hybrid situation - macOS/Windows desktops running Linux VMs
- krzyk 3mo agoUnfortunately there are more and more users on Linux and as a result windowsization/macosization of Linux is in progress (systemd, wayland, some scary stuff Poettering is doing with boot, snap/flatpack).
- qalmakka 3mo agoThis 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?
- jorisw 3mo ago[Replied to wrong comment]
- qalmakka 3mo agoThat's totally unrelated to what I wrote
- adastra22 3mo agosandbox profiles?
- qalmakka 3mo agomacOS sandboxing is deliberately limited just enough to prevent anyone from truly implement Darwin-on-Darwin containers. People have been discussing about this for a while, see https://github.com/apple/container/discussions/611 https://github.com/apple/container/discussions/611 In general I understand the rationale behind Apple's decision. They sell hardware, and there's real demand for macOS on servers to run build jobs and other Mac-only tools. Giving you the ability to run multiple containers on a single Mac would end up turning a 10 Mac Mini order into a 2 Mac Minis order for most people. Rest assured, even if it would be technically possible they'd find a way to cap it somehow via the EULA or whatever
- coldtea 3mo agoI doubt this insignificant statistically speaking market (compared to the overall units they move) is what prevents them.
- 3mo ago
- harrouet 3mo agoWhy did they have to invent their own solution instead of just shipping docker or an equivalent clone ?
- nottorp 3mo agoIsn't docker on mac os still a large preallocated linux VM that runs the containers inside itself? With this maybe you can separate them.
- konaraddi 3mo agoSounds like toolbox or distrobox for Mac!
- beemboy 3mo agoIs this going to be good for AOSP builds on Macs?
- ShinyLeftPad 3mo agoCan Podman support these eventually?
- kosikond 3mo agoThere _is_ Podman Desktop extension for Apple Containers, however its socktainer version is ancient.
- k_bx 3mo agoMost 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.
- tannhaeuser 3mo agoJust 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.
- jorisw 3mo ago[dead]
- coldtea 3mo ago>those of us holding out on Sequoia who can't stand the broken glass UI or what's called Maybe hold 1 release back, but other than that, I don't think "holding out" on macOS releases has ever been a winning strategy. In the end, macOS model presupposes users moving to the latest release sooner rather than later.
- niek_pas 3mo agoIt seems macOS Golden Gate (the upcoming version) fixes quite a few of the problems with Tahoe, so you might consider skipping Tahoe entirely.
- egorfine 3mo agoYeah I use Tahoe and I can't stand the liquid glass. It looks like Golden Gate fixes this design a lot.
- masklinn 3mo ago> Just to clarify, this requires Mac OS 26 Tahoe for "container" doesn't it? Yes’n’t: https://github.com/apple/container/blob/main/docs/technical-overview.md#macos-15-limitations https://github.com/apple/container/blob/main/docs/technical-... > container relies on the new features and enhancements present in macOS 26. You can run container on macOS 15, but you will need to be aware of some user experience and functional limitations. There is no plan to address issues found with macOS 15 that cannot be reproduced on macOS 26. The issues are around networking.
- jrochkind1 3mo agoI turned off what "glass" UI I could with config, and it's not too different than Sequoia, got used to it pretty quick. Obviously the things not supported on an old OS will keep increasing, until eventually it is EOL'd.
- LaFolle 3mo agoPython 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.
- KeplerBoy 3mo agoIsn't that just expected for modern macOS devices? They have been on arm64 for 6 years now.
- coldtea 3mo agoThis however is for Linux containers on macOS, and for those the deployment target are not usually/necessarily arm. (Plus, you could always even have amd64 linux containers on macOS AS, with good performance, via Rosetta2).
- sdevonoes 3mo agoIm running Multipass on M1 for full linux VMs. Are container machines better?
- pmontra 3mo agoHow 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.
- iririririr 3mo agoit differs by lacking all the cool options that makes vmware and virtualbox good products, but apple users will praise it as a benefit "bind mounts? I'm better without it"
- coldtea 3mo agoFunny how confidently people can mock while knowing nothing about the specific tech discussed and the different targets. I'd google: VirtualBox vs containers.
- pmontra 3mo agoIt's called a container machine but it's a virtual machine. I quote from https://github.com/apple/container/blob/main/docs/technical-overview.md https://github.com/apple/container/blob/main/docs/technical-... > container runs containers differently. Using the open source Containerization package, it runs a lightweight VM for each container that you create. This approach has the following properties: > * Security: Each container has the isolation properties of a full VM, using a minimal set of core utilities and dynamic libraries to reduce resource utilization and attack surface. > * Privacy: When sharing host data using container, you mount only necessary data into each VM. With a shared VM, you need to mount all data that you may ever want to use into the VM, so that it can be mounted selectively into containers. > * Performance: Containers created using container require less memory than full VMs, with boot times that are comparable to containers running in a shared VM. So: you build it as a container image and MacOS starts a VM to run it. Edit: quite unusually for a container it runs systemd. They give an example "systemctl start postgresql".
- shelled 3mo agoI hope this brought us one step closer to being able to run our distros of choice very freely and easily on a Mac.
- aspeckt_112 3mo agoThis 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.
- Havoc 3mo agoAlways nice to have more options especially without third party tools
- rcarmo 3mo agoThis blew up spectacularly when combined with Time Machine, I wonder if that’s fixed.
- happyopossum 3mo agoConsidering that this project was published less than 24 hours ago I’m guessing you assume it’s a different project.
- emulio 3mo agoThis appears to be an LXC-style alternative for macOS; however, unlike native LXC on Linux, this tool relies on VMs. While Docker and Podman also utilize a VM on macOS, they offer the advantage of the Docker Compose format. In my view, the ability to use YAML for declarative configuration is the most critical feature for any container tool. I have nothing against CLI tools in general, but I prefer avoiding repetitive manual commands that could be easily automated via Docker Compose or Kubernetes manifests.
- notpushkin 3mo agoApple does have an OCI variant of this: https://github.com/apple/container https://github.com/apple/container Doesn’t seem to have Compose support though, but it’s probably not impossible to build upon. And of course, it also uses VMs, though unlike Docker, it’s one (micro-?) VM per container: https://github.com/apple/container/blob/main/docs/technical-overview.md#how-does-container-run-my-container https://github.com/apple/container/blob/main/docs/technical-...
- kenanfyi 3mo agoI don‘t understand why these tools always advertise about mounting the $HOME inside the container. Isn‘t it better to have a complete isolation? Isn‘t that the point of using such a thing?
- LoganDark 3mo agoNo, the point of using such a thing is to be able to run Linux workloads. For example, I recently used Containerization to generate trace logs from the tup test suite so that I could bring it up to relative parity on macOS. If it had complete isolation, I would have difficulty getting the modified source code into the container and difficulty getting the trace logs back out of the container. Sure, you can paper over this with bind mounts or whatever the fuck but that's annoying
- kenanfyi 3mo agoUnderstand. And yeah that‘s annoying. I use containers only for development and to keep my main system secure from supply chain attacks. I have almost no build tooling in my Mac anymore. No npm, no cargo, no uv. Nothing. They all live inside the container which is completely isolated. I guess my use case is not that important for the main user of these tools.
- LoganDark 3mo agoI wouldn't say your use case is not important. That is a completely reasonable way to work. I just wouldn't say mounting home directories is an anti-feature. There just should be a way to turn it off.
- kenanfyi 3mo agoWell, maybe I should have used relativity unimportant. And yes there should be a way to turn them off. In OrbStack it was not possible to do that until lately.
- sigmoid10 3mo ago
- avsm 3mo agoI looked at this last year when it came out in Tahoe: https://anil.recoil.org/notes/apple-containerisation https://anil.recoil.org/notes/apple-containerisation and this looks like more of the same. They've now added a WSL-style virtual machine layer, but there's no x86 container story (Apple's killing Rosetta) so I imagine some qemu shimming will be required. There's still no equivalent to VPNKit or GVisor for networking so you'll be bridging I think. See: https://cacm.acm.org/research/a-decade-of-docker-containers/ https://cacm.acm.org/research/a-decade-of-docker-containers/ for how Docker for Mac does this I can't spot any support for dynamic memory ballooning to prevent the hypervisor from gobbling up too much memory. We've had this in Xen since forever! https://xenproject.org/blog/ballooning-rebooting-and-the-feature-youve-never-heard-of/ https://xenproject.org/blog/ballooning-rebooting-and-the-fea... And, most obviously: NO SUPPORT FOR MACOS. This is the single feature that only Apple can do, and they're choosing not to implement it deliberately, and it's so stupid given the pains we all have to go through to implement CI for macOS. In the land of OCaml, we were forced to implement a custom ZFS snapshotter to get reasonably cost effective macOS CI for our package repository: https://tarides.com/blog/2023-08-02-obuilder-on-macos/ https://tarides.com/blog/2023-08-02-obuilder-on-macos/. This was fun to build, but it sucks to have to maintain it. Also, I'm really curious what the GPU passthrough story here is for LLMs, since the Apple Silicon -> Linux kernel support is gated on Asahi's support, but that's been lagging beyond M2 due to the efforts of reverse engineering. Do better for your developers, Apple. This is a half-baked sweep across third-party software without addressing the core needs around your own operating system.
- throw1234567891 3mo agoAnd no GPU passthrough? So colima with libkit remains the only method on Apple Silicon?
- Lapsa 3mo ago[dead]
- Igor_Wiwi 3mo agoInteresting from a Docker perspective, but I’m more interested in it as a sandbox for AI agents and untrusted code execution. I wrote about that angle here: https://igorstechnoclub.com/sandbox-exec/ https://igorstechnoclub.com/sandbox-exec/ Feels like the spiritual successor to sandbox-exec, but with VM-level isolation.
- avel 3mo agoYes, that article states that as well under limitations: "Deprecation status: While functional, Apple discourages its direct use in favor of App Sandbox for developers."
- almaight 3mo agoIt's been over a year since it came out, based on kata-container
- deleted 3mo ago[deleted]
- naikrovek 3mo agoah, a rare step closer to plan9. (you remote into a system and part of your environment comes with you; that's very Plan9-like.)
- yurimo 3mo agoI'm pretty sure this is not the use case at all but man do I miss bootcamp. Even for games if we could just run linux without a need for crossover, gaming on mac machines would be a dream.
- krzyk 3mo agoOh, I hoped it would be macos contained in those containers. Container for Linux are in millions, while I don't know if there are any with macos inside.
- GHanku 3mo ago[dead]
- ExoticPearTree 3mo agoWill this come to MacOS 27? LE: nevermind, it is already on MacOS. Did not read everything.
- asxndu 3mo agoAvailable from 15
- cdnsteve 3mo agoIs it just me or is the experience to get this up and running not feeling very Apple like? Is there no one liner to install or did I miss something?
- asxndu 3mo agoCould this be an analogue of WSL on windows but for MacOS?
- alwinaugustin 3mo agoWhy it is important ? We have Docker for containers, right ?
- yeswecatan 3mo agoHow would I replace docker compose containing multiple services that communicate with each other with this? Seems cool for an individual service.
- bicepjai 3mo agoSo are there any benchmarks that compare all containers / docker / Lima / Colima / virtual box / VMware / orbstack and others ?
- solenoid0937 3mo agoThey shouldn't bury the details about how the containerization actually works.
- zer0zzz 3mo agoI just want thunderbolt pci passthrough for these things.
- exabrial 3mo agoHandy for sure! In production though, I've moved completely to systemd isolation of apps, rather than Docker-like containers; essentially blackboxes and present a supply chain threat. There's also a DRY principle here. Verification of a host presents a much smaller surface area.
- running101 3mo agoSeems like wsl (windows subsystem for linux)
- thedougd 3mo agoI still can’t use Containers because of a broken DNS implementation. I suppose I could manually set the DNS as I switch on and off VPN, but I don’t have to with Finch, Podman, or Docker Desktop.
- kstenerud 3mo agoThis is awesome! I just added this as a backend for yoloAI on Mac, and wow... super fast startup times now!
- jlhawn 3mo agoMichael Crosby wrote this! He's a long-time maintainer of Docker, Containerd, and more! He was Docker's first to receive the 'Distinguished Engineer' Title. This means a lot coming from him.
- Melatonic 3mo agoSounds a lot more like micro VM's and not normal containerization
- brianmartin039 3mo agoI've been using Lima for this exact workflow. Apple's implementation looks cleaner though, especially the automatic user mapping. Curious how the performance compares.
- zoetaylor00 3mo ago[dead]
- lanycrost 3mo agoI will wait when docker or podman will adopt this :D