Apple Open-Sources Swift-Based Container Tool "container"
Apple has open-sourced "container," a tool for running Linux containers as lightweight VMs on macOS, written in Swift and optimized for Apple Silicon, supporting OCI images.
On June 12, 2026, Apple released “container,” an open-source tool for creating and running Linux containers as lightweight virtual machines (VMs) on macOS. The tool is written in Swift and optimized for Apple Silicon. The source code is available in a repository on GitHub.
Technical Features
The key feature of container is that it runs Linux containers as VMs on macOS. While typical container runtimes like Docker or Podman share the host operating system’s kernel, container uses virtualization technology to run the Linux kernel independently. This approach is expected to improve compatibility and isolation when running Linux containers on macOS.
The tool consumes and produces Open Container Initiative (OCI) compatible container images. It can pull images from standard container registries for execution, and also push built images to those registries. Other OCI-compliant applications can run the same images.
For low-level container, image, and process management, the tool adopts the Containerization Swift package. Stability as a Swift package is only guaranteed within the current version.
Why macOS 26 Is Required
Running container requires a Mac with Apple Silicon and macOS 26 is mandatory. Apple added new features and extensions to virtualization and networking capabilities in macOS 26, and container leverages these features. Previous versions of macOS are not supported, and the maintainers will generally not address issues that cannot be reproduced on macOS 26.
This policy demonstrates Apple’s strategy of actively incorporating cutting-edge platform features into developer tools. However, it also raises concerns about increased version lock-in for macOS.
Installation and Operation
Installation is done by downloading a signed installer package from the GitHub releases page. The installer places files under /usr/local. The system service is started with the container system start command.
Upgrades and downgrades are performed by manually reinstalling the package or by using the update-container.sh script. When downgrading, existing instances must first be stopped with container system stop. User data can be kept or deleted using the -k and -d flags. Uninstallation is also handled by similar scripts.
Relationship with the OCI Ecosystem
container’s OCI compatibility is important for ensuring interoperability with the existing container ecosystem. Developers can pull images from standard registries such as Docker Hub and GitHub Container Registry, and push locally built images to those registries.
However, because container uses a VM-based execution model, the runtime behavior of the same OCI image may differ from that in Docker, which shares the host kernel. This point requires attention in production use.
Development Status and Community
The project is currently in active development. The source code is also available as a Swift package, and can be built and run in a custom development environment. Contributions are welcome, and guidelines are published on GitHub.
API documentation is also available, allowing developers to extend the tool while referencing it.
Editorial Opinion
Short-term Impact
Apple’s official provision of an OCI-compatible container tool adds an important option for engineers using macOS as a development platform. With an Apple-native alternative added to the existing reliance on Docker Desktop or Podman for Linux container operations, this is expected to promote migration to macOS 26. However, the restriction to macOS 26 alone could become a barrier to adoption for teams with strict version management.
Long-term Perspective
At WWDC 2026, Apple announced Apple Intelligence Full Launch, Siri AI Revamped in iOS 27, advancing AI capabilities across the platform. Providing low-level tools like container can be seen as part of Apple’s strategy to entrench the entire developer base within its own stack. In particular, the virtualization and container infrastructure reimplemented in Swift may evolve into core technology for Apple’s cloud services and edge computing in the future.
Questions from the Editorial Team
It remains to be seen how far Apple will extend and maintain container as an alternative to existing container tools like Docker and Podman. Is this design, which claims OCI compatibility yet depends on macOS 26, truly practical for cross-platform development? Also, what performance characteristics will the Swift-based virtualization stack exhibit compared to existing Linux kernel-based containers? Future benchmarks and community feedback will be closely watched.
References
- apple/container - GitHub — Released June 12, 2026
Frequently Asked Questions
- Can container replace Docker?
- Not as a complete replacement. Container is a tool for running Linux containers as VMs on macOS, and does not share the host kernel like Docker does. Interoperability is ensured at the OCI-compatible image level, but the execution models differ.
- What environment is required to run container?
- A Mac with Apple Silicon and macOS 26 are required. Previous macOS versions are not supported. Installation is done by downloading a signed package.
- Can images built with container be used in other environments?
- Yes, because it is OCI-compatible, they can be used with OCI-compliant tools like Docker and Podman. Push and pull to standard registries are also supported.
Comments