Apple container on Mac: the complete guide and GUI
apple/container runs Linux containers on your Mac, each in its own lightweight virtual machine. It ships as a command-line tool. Gantry is a native macOS GUI for it. This guide explains the tool, how to set it up, and which Gantry feature covers each container command.
In short. Gantry is a free, open-source (MIT) macOS app that manages Apple's container tool and Docker from one window. It supports container CLI 1.0 to 1.7.1 (recommended) and shows only the features your CLI version supports. Install it with brew install --cask getgantry/tap/gantry.
What is apple/container?
apple/container is an open-source tool from Apple, written in Swift, that creates and runs Linux containers on a Mac. Docker Desktop runs all containers in one shared Linux VM; apple/container runs each container in its own lightweight virtual machine, built on Apple's Virtualization framework. It uses standard OCI images, so it pulls from and pushes to the same registries as Docker.
- Hardware: a Mac with Apple silicon.
- macOS: Apple supports it on macOS 26.
- Interface: the
containerCLI only. There is no desktop app and nocomposecommand. - Networking: each container gets its own IP address on your Mac, and local DNS domains give containers names such as
web.test.
Why use a GUI for apple/container?
The CLI is complete, but daily work means many commands: container list, logs, stats, exec, then system, builder, registry, machine and cluster for the rest. Gantry puts them in one window with live updates, so you see the state instead of polling for it. It also adds what the CLI does not have: Compose files, failure notifications, a fleet view with your Docker hosts, and an MCP server for AI agents.
Set up apple/container with Gantry
- Install Gantry:
brew install --cask getgantry/tap/gantry, then clear the quarantine flag (see Install). - Install the
containerCLI from the signed.pkgon the apple/container releases page. If it is missing or older than 1.0, Gantry shows a setup sheet with the steps. - In Gantry, choose Add Host… and add an Apple Container host. Connecting starts the
containerservices if they are stopped. - If no default kernel is installed, the host overview shows a banner. Click it to install the recommended kernel.
container machine and container cluster cannot run.Each container command and its Gantry feature
This table maps the container CLI to Gantry. The last column shows the CLI version that Gantry needs for the feature. Any means any supported CLI, 1.0 or later. Gantry reads your installed version and hides the features that it does not support.
| CLI command | Gantry feature | CLI version Gantry needs |
|---|---|---|
container run, container create | New Container sheet and Quick Run: image, name, command, ports, environment, volumes, DNS domain, custom kernel and boot arguments; Paste Command… reads a docker run or container run line | Any |
container list --all | Containers list, grouped by Compose project, with state filters and search | Any |
container start, stop, kill, delete, prune | Toolbar, right-click menu and the menu bar panel | Any |
container logs | Logs tab: live follow, regex search, level filter, ANSI color; Export Logs… saves the visible lines | Any |
container stats | Stats tab, fleet dashboard sparklines and the Resource Usage table | Any |
container exec | Terminal tab (interactive shell) and Processes tab | Any |
container inspect | Overview and Inspect tabs; Export as Compose… turns the configuration into a Compose file | Any |
container export | Export Filesystem (tar) | Any |
container commit | Commit to Image | 1.6 |
container copy | Files tab: download and drag out to Finder (the container must be started) | Any; tested on 1.6.1 |
container exec with tar | Files tab: upload files and drop whole folders from Finder | Any |
container clean | Trim Disk on a running container, and a row in Reclaim Space | 1.4 |
container image pull, tag, delete, prune, inspect | Images: pull with progress, tag, remove, prune, inspect; Scan for Vulnerabilities… with Trivy or Grype | Any |
container build | Builds the build: services of a Compose file; the Builds section lists the builds that Gantry started | Any |
container volume create, delete, inspect, prune | Volumes | Any |
container network create, delete, inspect, prune | Networks | Any |
--network <name>,alias=… | Network DNS aliases, subtree aliases (.gateway) and Compose service names | Any; tested on 1.6.1 |
container system start, stop | System section: start, stop and restart the services; also in the menu bar and Settings | Any |
container system status, version | System section: status, client and server versions, host facts | Any |
container system logs | System section: Service Logs, live or over 5 minutes to 1 day, filtered by level, service and text | Any |
container system property list | System section: System Properties editor, saved to ~/.config/container/config.toml | Any; [container.dns] lists 1.7 |
container system dns create, delete, list | Settings ▸ Apple: local DNS domains and a default domain | Any |
container system kernel set | System section: install the recommended kernel, a kernel file or a tar archive | Any |
container system df | Host overview disk usage and Reclaim Space | Any |
container builder start, stop, delete, status | System section: Image Builder with CPU, memory and DNS options | Any |
container registry login, logout, list | System section: Registry Logins (password on stdin only) | Any |
container machine create, run, stop, delete, set-default, set, inspect | Machines: create, start, stop, delete, default machine, CPUs and memory, shell, inspect, Open in VS Code | Any; nested virtualization and kernels 1.1 |
container cluster create, list, delete, write-config, load-image | Clusters: Kubernetes clusters, worker sizes and shared image store (1.7), nodes, kubeconfig, Browse Resources, Load into Cluster (1.5 and 1.6) | 1.5 (k8s), 1.6.1 and 1.7 (cluster) |
No compose command | Compose runner: bring up a docker-compose.yml from Finder, the File menu or drag and drop | Any |
What Gantry adds on apple/container
Kubernetes clusters
Create Kubernetes clusters with container cluster, size the workers, let pods use your local images, choose the CNI and see each node. Then browse the cluster in the Gantry Kubernetes browser. See Kubernetes on apple/container and the step-by-step guide Run Kubernetes on a Mac.
Container machines and VS Code
Machines are long-lived Linux environments from container machine. Gantry creates, starts, stops and deletes them, sets the default machine, edits CPUs and memory, and opens a shell. On CLI 1.1 or later, a machine can boot with nested virtualization (Apple silicon M3 or newer) and a custom kernel. Open in VS Code connects to a running machine over Remote-SSH; the machine image must run sshd.
Docker Compose on apple/container
Open a docker-compose.yml from Finder (Open With ▸ Gantry or Quick Actions ▸ Compose Up in apple/container), from File ▸ Open Compose File…, or by dropping it on the window. Gantry builds build: services, creates the project network and named volumes, and starts each service in depends_on order with the standard com.docker.compose.* labels. With a default DNS domain set, services reach each other by service name through network aliases.
Network DNS aliases and local domains
Gantry passes network aliases to container as --network <name>,alias=…. Without a default DNS domain, only fully qualified names pass, and a subtree alias (a leading dot, such as .gateway) passes only as its exact alias. With a default domain, short names work too. Gantry creates and deletes local DNS domains, sets the default domain, and gives new containers a name.domain hostname. See Local DNS names.
System: services, builder, registries, kernel, logs, properties
Each apple/container host has a System section. It works while the host is disconnected, so you can start stopped services from there.
- Status and version: client and server versions, with a warning when they differ; start, stop and restart the services; host facts and paths.
- Image Builder: state, image, CPUs, memory and IP; start with CPU, memory and DNS options; stop; delete. A card tells you when the builder image is outdated and recreates it.
- Registry Logins: list, log in and log out. The password goes to the CLI on stdin (
--password-stdin) only, and Gantry keeps no copy. - Kernel: install the recommended kernel, a kernel file or a tar archive, with streamed progress.
- Service Logs: live or one-shot, over 5 minutes to 1 day, filtered by level, service and text.
- System Properties: edits go to
~/.config/container/config.toml, with a pending-restart flag and a Restart Services button. On CLI 1.7, the[container.dns]name servers, search domains and options have a list editor.
Commit, Trim Disk and files
Commit to Image uses container commit (CLI 1.6). Trim Disk uses container clean (CLI 1.4) and also shows as a row in Reclaim Space. The Files tab downloads files and lets you drag them out to Finder with container copy (the container must be started), and uploads files and folders.
Labels that contain =
container create rejects a label value that contains =, also on CLI 1.6.1. Gantry encodes such values when it creates the container and decodes them when it reads it back, so the labels you set are the labels you see.
MCP server and Shortcuts
The bundled gantry-mcp server gives AI agents the same reach on apple/container hosts: containers, images, volumes, networks, Compose, machines (list_machines, create_machine and more), clusters (list_clusters, create_cluster, delete_cluster) and apple_* system tools for services, builder, registries (no login tool), properties, logs and kernel install. App Intents add Shortcuts and Siri actions. See AI agents & MCP.
claude mcp add gantry -- /Applications/Gantry.app/Contents/Resources/gantry-mcp
apple/container next to Docker
Gantry manages apple/container hosts, the local Docker daemon (Docker Desktop, OrbStack, Colima) and remote Docker hosts over SSH in one sidebar and one fleet dashboard. You do not have to choose one runtime. For a feature-by-feature view of the tools, see Gantry vs Docker Desktop, OrbStack and Podman Desktop. To move your work over, read Move from Docker Desktop to Apple container.
Questions and answers
What is the best GUI for Apple container?
Gantry is a free, open-source native macOS GUI made for apple/container. It maps the container CLI to a desktop app: containers, logs, stats and exec, plus Kubernetes clusters, machines, the image builder, registry logins, kernels, service logs and system properties. The table on this page lists each command and the Gantry feature that uses it.
Does Apple container have a GUI?
Apple ships container as a command-line tool only. Gantry is a separate open-source app that gives it a GUI, next to your Docker hosts.
Can I use docker compose with Apple container?
apple/container has no compose command. Gantry reads a docker-compose.yml, builds build: services, creates the network and named volumes, and starts the services in depends_on order. Service names resolve through network DNS aliases.
How do I open a container machine in VS Code?
Start the machine in Gantry and click Open in VS Code. Gantry opens it over Remote-SSH, as in Apple's container-machine-vscode example. The machine image must run sshd.
Does Apple container work on Intel Macs?
No. apple/container needs a Mac with Apple silicon. Gantry runs on Intel Macs too, but there it manages Docker hosts only.
Which container CLI version should I install?
Gantry needs 1.0 or later and recommends 1.7.1. Install it with the signed installer package from the apple/container releases page. The Homebrew build does not include the machine backend or, in 1.7.1, the cluster services, so container machine and container cluster do not work with it.
Last updated 2026-11-23.