a day ago
macOS Embraces Linux Containers with Native Support
Apple has unveiled a breakthrough open‑source framework, Containerization, during its WWDC 2025 keynote, enabling developers to create, run and manage Linux containers directly on macOS. The Container CLI, a companion command‑line tool, operates each container as a lightweight virtual machine, bypassing the need for third‑party platforms like Docker. This marks a strategic shift in Apple's support for cross‑platform workflows, particularly for developers working on server‑side and cloud‑native applications.
Containers have become central to modern software engineering by packaging applications with all dependencies in a consistent, portable environment. Up to now, Mac users have typically relied on resource‑heavy, shared VMs to run Linux containers, often encountering sluggish performance and battery drain on Apple Silicon machines. Apple's solution leverages its own Virtualization framework and Apple Silicon optimisations to spin up sub‑second containers, each within its own minimal‑footprint VM.
Isolation and security are core pillars of Containerization. Each container receives a dedicated IP address, entirely separate CPU and memory allocations, and performs directory sharing only when explicitly requested. The container's root filesystem omits core utilities, libc, and dynamic libraries by default — a deliberate measure to reduce the attack surface. The init process, vminitd, is written in Swift and acts as the VM's first process, handling IP assignment, filesystem mounting and process supervision.
ADVERTISEMENT
Performance gains are significant. By optimising the Linux kernel and exposing container filesystems as EXT4 block devices, Apple has achieved rapid cold‑boot speeds while maintaining low I/O overhead. Benchmarks suggest these containers outperform Docker Desktop in terms of startup time, memory footprint and CPU use on Apple Silicon systems.
Technical details from GitHub show support for OCI‑compliant images, enabling compatibility with existing registries and Kubernetes systems. The container CLI mirrors familiar commands—pulling and running Alpine Linux images is as simple as typing container image pull alpine:latest. The project repo, licensed under Apache‑2.0, is written entirely in Swift, optimised for Apple Silicon and designed for community contribution.
Apple's launch places Containerization among strong open‑source contenders such as Podman, containerd, Buildah and Rancher Desktop. Yet the per‑container VM model marks a departure from standard shared‑kernel container runtimes, offering enhanced isolation at the cost of slightly increased base resource use. Notably, critics and users on Reddit and in industry commentary have voiced curiosity about whether this approach outclasses lightweight VM tools like Orbstack or Lima.
A potentially limiting factor is network isolation on macOS 15. Full network capabilities, including container‑to‑container traffic, are only available on the upcoming macOS 26, currently in beta and expected later in the year. Users on the earlier Sequoia release may experience restricted container networking or compatibility issues. Additionally, a Rosetta 2 bug affecting x86_64 processes in Linux VMs may impede workflows involving amd64 containers—a challenge both Apple and downstream projects like Podman are working to resolve.
The timing of Containerization aligns with a broader developer toolkit refresh. Alongside this framework, Apple introduced Swift 6.2, Xcode 26 featuring LLM integration, and Game Porting Toolkit 3. This suite reflects a strategic push to consolidate development workflows across desktop, mobile, AI and cloud environments within the Apple ecosystem.
Early adopters with Apple Silicon and access to macOS 26 beta are already testing the CLI and framework. Feedback is mixed: some praise the speed and security enhancements, while others caution that lack of full networking and Rosetta issues may restrict use in complex container orchestration setups.
Apple's decision to open‑source Containerization is notable. It invites cross‑platform contributions, and standards compatibility via Swift and OCI means downstream projects could integrate with or build on the framework. If momentum grows, it could prompt a shift away from third‑party container tools on macOS, benefiting the entire developer ecosystem.