Apple Container
How it works
Each `container run` boots a minimal Linux virtual machine using Apple's Virtualization framework (on Apple silicon). Inside the VM runs vminitd — a small init system that is the first process and exposes a gRPC API over vsock. Thanks to an optimized Linux kernel configuration and a minimal root filesystem (ext4), containers reach sub-second start times. OCI-format images are pulled from standard registries; each container can be given a dedicated IP address, which removes the need for port forwarding. linux/amd64 containers can run on Apple silicon via Rosetta 2. The service is started with `container system start`. Requirements: a Mac with Apple silicon and macOS 26 or later; the Containerization framework is tested from kernel version 6.14.9, and users can supply their own kernel.
Problem solved
macOS cannot natively run Linux containers, and the dominant solution (Docker Desktop) runs all containers inside a single shared virtual machine, which weakens isolation between them. Apple Container solves this by giving each container its own lightweight VM with a dedicated IP address and sub-second start times. For AI systems and agents this means a strong, OS-native sandbox for safely running untrusted or generated code on Apple silicon Macs.
Components
The main user entry point; commands such as `container run` and `container system start`.
A Swift package providing APIs for OCI images, registries, ext4 filesystems, Netlink sockets, and building an optimized Linux kernel.
On Apple silicon it uses Apple's Virtualization framework; each container gets its own VM with an optional dedicated IP.
Exposes a gRPC API over vsock to manage the container process lifecycle.
Implementation
Evolution
Apple releases the `container` tool and the Containerization Swift package under Apache-2.0, introducing a one-lightweight-VM-per-container model on Apple silicon.
Hyperparameters (configurable axes)
CPU and memory allocation for the container's virtual machine.
Running linux/amd64 images on Apple silicon via Rosetta 2.
Ability to supply a custom Linux kernel; tested from version 6.14.9.