Live data from Hacker News

macOS Container Machines

github.com

21–30 of 457 posts

Re: macOS Container Machines

#22
post #2

looks 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

i wish!

Re: macOS Container Machines

#23
post #5
post #2

looks 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

Nice, but expect to page through a few pages of ToS during the build

lol

  ENV XCODE_FRONTEND=unattended
  ENV XCODE_LICENSES=accept,firstborn,applepay,appleid=sjobs@me.com

Re: macOS Container Machines

#26

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

(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.

Re: macOS Container Machines

#27
post #2

looks 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

It would be wonderful if this ran on older versions of macOS, but according to the README they only support 26.

Re: macOS Container Machines

#29

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

Ah, the Darwin/BSD Subsystem for Linux.
Post reply on HN