Overview of Containerization APIs
mainThe Containerization package allows applications to use Linux containers by executing them inside lightweight virtual machines. It provides Swift APIs for several core container operations:
- OCI Image Management: Manage OCI images and interact with remote registries.
- Filesystem Operations: Create and populate
ext4file systems. - Networking: Interact with the Netlink socket family.
- Kernel Management: Create optimized Linux kernels for fast boot times.
- Runtime Management: Spawn lightweight virtual machines and manage the runtime environment.
- Process Management: Spawn and interact with containerized processes.
- Architecture Support: Use Rosetta 2 for running
linux/amd64containers on Apple silicon.
On macOS, it uses Virtualization.framework. On Linux, it uses cloud-hypervisor + KVM.