Ghostboard pixel

macOS Meets Linux with Open Source Containerization

Apple’s new open source Containerization project brings native Linux container support to macOS.

tux, containerization, and apple logos, background is mixed shades of green

Containers have fundamentally changed how software development is carried out. They let developers package applications with all their dependencies into a single, portable unit. This makes it easy to deploy and run software anywhere.

Linux has been at the heart of container technology since its inception. Most popular container runtimes and tools like Docker, Kubernetes, and cointainerd were originally designed to run in Linux environments.

In the case of macOS, running containers usually requires running a Linux virtual machine (VM) or an application like Docker Desktop. This is far from optimal as it introduces additional resource overhead, slower performance, and complicates development workflows.

That's where Apple's new open source Containerization project comes in.

What's Happening: Announced at WWDC 2025, Apple has launched a tool that brings native Linux container runtime support to macOS. Based on Swift, the tool leverages Apple's Virtualization framework to run containers inside a lightweight VM, eliminating the need for traditional hypervisors or a heavyweight Docker VM.

apple containerization running a container powered by alpine linux on a macos device
Source: Apple

Supporting this is the Container project, which provides the core Swift library for working with OCI container images and runtime specs. It includes tools for image creation, metadata management, and spec validation, enabling seamless integration with Swift-based build systems and container runtimes.

What to Expect: With Containerization, each Linux container runs inside its own lightweight virtual machine rather than sharing a single large VM. The Swift-based vminitd process acts as the init system for each container on macOS, spawning as the initial process inside the VM and handling much of the heavy lifting in the background.

Apple provides Swift APIs that let developers easily manage container lifecycles, set resource limits, configure networking, and handle filesystem mounts, giving plenty of flexibility and control.

the architecture of apple containerization
Source: Apple

Moreover, in a bid to harden security, the developers have significantly reduced the container root filesystem. Core utilities, dynamic libraries, and even the standard libc implementation are excluded by default.

This stripped-down approach is intended to reduce the attack surface, resulting in containers that launch faster and offer improved security by design.

To run Containerization, you need an Apple Silicon device equipped with either macOS 15 or newer and Xcode 26 beta installed, or macOS 26 beta or later.

🎗️
Here's why you should opt for It's FOSS Plus Membership:

- Even the biggest players in the Linux world don't care about desktop Linux users. We do.
- We don't put informational content behind paywall. Your support keeps it open for everyone. Think of it like 'pay it forward'.
- Don't like ads? With the Plus membership, you get an ad-free reading experience.
- When millions of AI-generated content is being published daily, you read and learn from real human Linux users.
- It costs just $2 a month, less than the cost of your favorite burger.

Become a Plus Member today and join over 300 people in supporting our work.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS News.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.