News for hackers. Stuff that matters.
Re:Apple M3 Ultra by devmor on Wednesday March 05, 2025 @10:29AM (#43267855)
>I run Docker and Podman on my Macs.

The same way Windows users run them. In a linux VM.

You don't get real on-hardware containerization.

Re:Apple M3 Ultra by kstrauser on Wednesday March 05, 2025 @10:42AM (#43268043)
Ah, I see what you’re saying. Basically, Darwin doesn’t support cgroups, so Docker runs Linux in a VM to get that.
Re:Apple M3 Ultra by devmor on Wednesday March 05, 2025 @10:45AM (#43268109)
I don't think it supports userland namespaces either, which is another important part of container isolation.
Re:Apple M3 Ultra by saagarjha on Thursday March 06, 2025 @02:47AM (#43277560)
It has partial namespaces support for the iOS simulator.
Re:Apple M3 Ultra by naikrovek on Wednesday March 05, 2025 @10:38AM (#43267986)
surprisingly, Windows containers on Windows are not run in a VM. Well, not necessarily; they can be.

It is definitely odd that Macs have no native container support, though, especially when you learn that Windows does.

Re:Apple M3 Ultra by p_ing on Wednesday March 05, 2025 @11:29AM (#43268770)
Well, Windows (in a form) is the hypervisor for the Azure infrastructure. Azure Web Sites when run as Windows/IIS are Windows containers. Makes sense.

Honestly I don't know what XNU/Darwin is good for. It doesn't do anything especially well compared to *BSD, Linux, and NT.

Re:Apple M3 Ultra by hedora on Wednesday March 05, 2025 @12:55PM (#43269934)
Its async i/o APIs are best in class (i.e., compatible with BSD, and not Linux’s epoll tire fire).

Not disagreeing though.

Re:Apple M3 Ultra by p_ing on Thursday March 06, 2025 @09:46AM (#43280819)
Linux has io_uring. NT outclasses XNU by a long shot with IOCP, Registered I/O, and IO Ring (io_uring copy).
Re:Apple M3 Ultra by devmor on Wednesday March 05, 2025 @10:41AM (#43268025)
That is an important point, I didn't really think of it since I've never had a reason to use Windows containers.
Re:Apple M3 Ultra by naikrovek on Wednesday March 05, 2025 @01:30PM (#43270380)
that's ok, no one thinks of windows, and fewer people than that would ever use a windows container.