Swift / 11:07

Discover container machines

SwiftSystem ServicesDeveloper Toolsmacos

Key Points

  • Introduces container machines, a new tool included in Container that offers a lightweight persistent Linux environment on Mac.
  • Covers how container machines work and how the design of Containerization allows for a performant and seamless experience when developing for Linux on macOS.
  • The session moves through Containerization, Design principles, Container machine, Demo.
  • Key concepts include container machines, Containerization, Safari.
  • Platform coverage: macos.
More Detail

Additional details

  • Containerization is a Swift framework for running Linux containers on macOS with APIs for storage, networking, execution, and a Linux init system.
  • Container machines combine container-like startup and image usage with virtual-machine persistence, so installed tools and project state survive across sessions.
  • Each container machine runs in its own lightweight virtual machine while using the same OCI image format and familiar `container` tool workflow.
  • The demo uses commands such as `container machine create`, `run`, and `stop`, including a default machine so repeated commands do not need the machine name.
  • Automatic user mapping, shared filesystem support, and current-directory mirroring reduce the context switch between macOS and the Linux environment.

Resources