Apple has released Apple Container 1.0, a program that allows you to run Linux- containers directly on macOS


2

The project is an extension of a previously open-source solution the company unveiled about a year ago as an alternative to traditional container platforms like Docker. Essentially, it's a CLI utility that allows you to create, run, and publish OCI-compatible containers, with integration into macOS and their own way of launching them.

As macOS do not support Linux-containers directly, Apple used the lightweight virtual machine approach. Each container runs inside an isolated Linux-environments, effectively creating its own microsystem. This is somewhat reminiscent of Microsoft's WSL.

Unlike classic containers, which are usually designed for a single process, here we are talking about a more complete environment. Linux- the space can work for a long time, run background services and save state between sessions - almost like a full-fledged system inside macOS.

One of the key features is the tightest possible connection with the system. Home folder macOS automatically available inside Linux-environments. Therefore, code, repositories, and settings can be used simultaneously in both environments.

All this allows you to write code in a familiar editor on macOS and at the same time compile and run it in Linux without unnecessary switching.

Also supported are different distributions - from Ubuntu и Debian to Alpine, with each environment being customizable.

Apple has added management of container "machines": you can create, start, stop them, configure resources, and choose file system behavior. There's even support for more advanced scenarios, such as background services within Linux-environment.

The only limitation to getting this functionality is that advanced nested virtualization scenarios require a Mac with an M3 processor or newer, and macOS 15 and a special core with support KVM(The author of the news has not tested this and cannot reliably comment or answer in detail what they mean).

Despite the new tool's introduction, it doesn't replace Docker Desktop. Docker still has a stronger ecosystem, familiar development tools, a GUI, and broad workflow support.

Apple Container 1.0 is more of an attempt to offer a more native way of working with Linux- environment on Mac - closer to the system, but not yet a universal replacement for the usual container platforms.

Source: linux.org.ru

Buy reliable hosting for sites with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster