Skip to content
All providers

apple-container

Run local Linux sandboxes on macOS with Apple Container.

Requirements

Use an Apple Silicon Mac with Apple Container installed. Follow Apple's requirements and installation instructions, then start and check its service:

container system start
container system status

Have the MagicMtn CLI installed on the same computer. The sandbox image must be available to Apple Container and match the host architecture.

Installation

magic provider install apple-container

This installs the MagicMtn adapter. See Requirements for any runtime or other software to install separately. Registry installation does not require a MagicMtn login or AWS credentials.

To remove the installed adapter:

magic provider uninstall apple-container

Usage

The provider runs each sandbox in a separate Linux container using Apple Container's virtual machines. The local connection enables outbound networking so the sandbox can reach the Pi gateway.

Local use currently requires an existing saved runner connection. Run magic-provider-runner with that connection's catalog and credentials, and keep it running while using or deleting local sandboxes. Installing the adapter alone does not set up a connection.

With that connection available, set local-sandbox = true in ~/.config/magicmtn/config. Then magic sandbox new and Pi's /magic new use local placement. If the runner is offline, local mode does not fall back to cloud compute.

See the local sandbox guide for more details.