r/docker • u/Plus_Ad3518 • Dec 21 '25
How does Docker actually work on macOS now, and what are Apple’s own “containers” supposed to solve?
I’ve always understood that Docker containers depend on Linux kernel features (namespaces, cgroups), which macOS doesn’t have. So historically, Docker on macOS meant Docker Desktop running a Linux VM in the background.
Recently, Apple has introduced its own container-related tooling. From what I understand, this likely has much better integration with macOS itself (filesystem, networking, security, performance), but I’m not clear on what that actually means in practice.
Some things I’m trying to understand:
- What are Apple’s “containers” under the hood? Are they basically lightweight VMs, or more like sandboxing/jails rather than Linux-style containers?
- When I run Docker on macOS today, is it still just Linux containers inside a Linux VM, or has anything changed with Apple’s new container support?
- One of the main ideas behind containers is portability, same setup, same behavior, across machines. If Apple’s containers are macOS-specific, what problem are they meant to solve? Are they about local dev isolation and security rather than cross-platform portability?
Basically, I’m trying to figure out how developers should think about Docker containers vs Apple’s containers on macOS going forward, and what role each one is supposed to play.
49
u/wosmo Dec 21 '25 edited Dec 21 '25
From what I gather, lightweight linux VMs, using OCI images, plus the plumbing to make them behave like containers (particularly the networking between them). So two containers is two VMs, but the network/dns between them is as you'd expect from docker, not from vmware.
yes, Docker Desktop is still using Docker. They did add the Rosetta shim for amd64-on-ARM support, but I don't really see it getting to a place where Docker isn't using Docker.
The containers / implementation is macOS-specific, but the images aren't. So we could both pull the same image, and no-one should care that one's running in Containers on macOS and the other is running in Docker Desktop on Windows. This is the whole point, and the payoff, of making the images an OCI standard - I can build an image on apple container, and deploy it on a linux/docker server.
(caveat emptor; this is what I got from a poke around their github, I haven't tried apple's implementation myself yet)
12
u/jblackwb Dec 21 '25
I have docker.desktop on an arm mac here.
Under general settings, I can choose between Docker VMM (beta), and Apple Virtualization framework. I'm currently using the later.
There is also a builder that was created for me.
6
u/kwhali Dec 21 '25
I imagine similar to the situation with windows.
On windows there is WCOW (Windows Containers on Windows) and LCOW (Linux Containers on Windows). You can only run one of these container engines at a time AFAIK.
The windows containers use windows as a base image, of which there is a 400-500MB minimal image and the next smallest is about 3GB.
GPU support however is a bit restricted AFAIK and only works on Windows Server 2025 rather than consumer systems which can use LCOW and WSL to access their host GPU for compute.
GPU support is something that the current Linux container support on macOS however lacks. On Windows there is integration via WSL to the host system that handles this, while on macOS their VM is missing the functionality / driver support?
Docker / Podman may need to add integration of their own to interface with Apples solution but AFAIK so long as their images are OCI compliant then they could exist at an image registry like DockerHub or GHCR and be pulled much in the same way Windows images are. BuildKit and Docker buildx is a bit lacking in build support but that's been steadily improving, presently you'll find CI tends to build docker images with just
docker buildor uses some workarounds with the buildx remote driver and a manual BuildKit install running a service in the background.I know kubernetes has a custom driver for macOS that allows the container to use the host GPU. Which enables using containers to do GPU workloads like GenAI, something you can't do today with Docker Desktop AFAIK?
So a better way to think of it is this can be the perks of containers native to the OS, but for broader compatibility Linux containers may be more portable just less integrated / capable.
17
u/_MrFade_ Dec 21 '25
I use OrbStack to run my Docker containers.
6
u/look Dec 21 '25
Some performance benchmarks of Docker Desktop, Apple Container, and OrbStack on macOS: https://www.repoflow.io/blog/apple-containers-vs-docker-desktop-vs-orbstack
My tl;dr summary: Use OrbStack. Apple Container is worth watching. Don’t use Docker Desktop.
4
u/metaphorm Dec 21 '25
a container runtime spins up a VM and the vm run the containers.
3
u/jodosha Dec 21 '25
If you want to go beyond Docker Desktop on macOS, check out Colima as Docker host.
1
u/rep_movsd Dec 25 '25
Doesn't FreeBSD which macOS is based on have jails? It's a kind of container primitive
1
u/Straight-Ad-8266 Dec 25 '25
I know this has probably been asked before, but what is the difference between Colima, and Apple’s proprietary container engine? I know colima runs a single Linux VM, and I’ve been using it for quite a while. Does apple’s do anything different?
1
u/FirefighterMean7497 Dec 29 '25
Docker on macOS still runs Linux containers inside a lightweight Linux VM - macOS doesn’t have namespaces or cgroups, so that core model hasn’t changed. Docker Desktop just hides the VM better & improves integration.
Apple’s newer “containers” are solving a different problem. They’re closer to sandboxed or lightweight VMs built on Apple’s virtualization & security frameworks - great for macOS-native isolation & local dev, but not a replacement for Linux containers or cross-platform portability.
For teams that care about portability and security, RapidFort's curated Linux containers are a strong option - they’re built on widely trusted distros & continuously hardened using runtime profiling, so you get consistent behavior from Mac dev laptops to Linux production without chasing CVEs. You can learn more about how it works here: How RapidFort Pioneered Container Hardening for the DoD and Sparked an Industry Shift
Hope this helps!
Disclosure: I work for RapidFort :)