Kubernetes on Apple container
apple/container can run a Kubernetes cluster whose nodes are containers on your Mac. Gantry is a GUI for it: create a cluster, watch its nodes come up, run your local images in it, and browse its pods, logs and services, without long container cluster command lines.
In short. On an apple/container host, the Gantry Clusters section creates and deletes Kubernetes clusters with container cluster (CLI 1.6.1 and 1.7) or container k8s (CLI 1.5.0 to 1.6.0). On CLI 1.7.1 it sizes the workers apart from the control plane and turns on the shared image store. The Kubernetes section browses the cluster: pods, logs, shell, port forwards, scale and Apply YAML.
Requirements
- A Mac with Apple silicon, macOS 26, and Gantry (
brew install --cask getgantry/tap/gantry). - The
containerCLI 1.5.0 or later; 1.7.1 is recommended. Workers and the None CNI need 1.6.0 or later. Worker sizes and the shared image store need 1.7.0 or later. Use the signed installer package: the Homebrew build of 1.7.1 has no cluster services. - Nothing else for the Gantry Kubernetes browser.
kubectlonly if you also want to use the cluster from the terminal.
Create a cluster
- Select your apple/container host and open Clusters in the sidebar.
- Start a new cluster and fill in the options below.
- Create it. The list shows the new cluster with streamed progress. Cancel stops the creation and deletes the nodes that were already made.
| Option | CLI flag | Notes |
|---|---|---|
| Name | --name | Also the kubeconfig context name |
| Workers | --workers | Number of worker nodes. CLI 1.6.0+ |
| Worker CPUs and memory | --workers count=N,cpus=C,memory=M | CLI 1.7+. Before 1.7, --cpus and --memory set every node |
| CPUs | --cpus | Control plane (CLI 1.7+), or every node (before 1.7) |
| Memory | --memory | Control plane (CLI 1.7+), or every node (before 1.7), for example 4G |
| Use local images | --shared-image-store | CLI 1.7+. Nodes run images from your local image store |
| Node image | --node-image | Empty keeps the CLI default |
| CNI | --cni | Default (bundled kindnet), None (NONE, CLI 1.6.0+) or a custom manifest path |
The same command on the CLI:
container cluster create --name dev --cpus 2 --memory 4G \
--workers count=2,cpus=2,memory=4G --shared-image-store
Nodes and cluster details
The cluster list shows one row for each cluster. The detail view has an Overview (kubectl context, API server, Kubernetes version, image store, workers and their resources, node network), a Nodes table and Inspect for the raw node data. The toolbar has Browse Resources, and the More menu has Write Kubeconfig, Copy kubectl Context Command and Delete.

Cluster nodes are containers, but container cluster owns them. Gantry disables start, stop, restart, remove and rename for a node and tells you why, and Start All and Stop All skip nodes. On CLI 1.7 the CLI also hides nodes from container list. Clusters created with CLI 1.6 or earlier do not show in the 1.7 list; remove them with container cluster delete --name <name>.
Browse the cluster
Click Browse Resources on a running cluster, or open Kubernetes in the sidebar. The section needs no host, and it lists every kubeconfig context; the contexts of apple/container clusters come first. Pick a namespace or all namespaces, then a kind: pods, deployments, stateful sets, daemon sets, services, ingresses, config maps, secrets, nodes or events.
- Pods: logs with follow, tail and the previous container; a shell in the pod; port forward to
127.0.0.1. - Workloads: scale deployments and stateful sets; restart a rollout.
- Secrets: values are masked in the list and in the YAML until you click Reveal.
- Apply YAML: paste a manifest or open a file; errors show in the sheet.
Gantry talks to the Kubernetes API itself, with the credentials in your kubeconfig. You do not need kubectl or any other tool: a cluster made with container cluster create is ready to browse.

container cluster with logs and port forwards.Connect kubectl
The CLI adds a context named after the cluster to ~/.kube/config when it creates the cluster. Use Copy kubectl Context Command in Gantry, or type it:
kubectl --context dev get nodes
To keep the cluster in its own file, use Write Kubeconfig. Gantry runs container cluster write-config; the default path is ~/.kube/<name>.kubeconfig.
Use local images in the cluster
On CLI 1.7, turn on Use local images when you create the cluster. It adds --shared-image-store, so the nodes can run any image that you build or pull with container, by name, with no registry. The setting is fixed at creation. After you rebuild a tag, use imagePullPolicy: Always or a new tag. Privileged pods can read every image in your local store, so keep this for local development.
container build -t myapp:dev .
kubectl --context dev create deployment myapp --image=myapp:dev
On CLI 1.5 and 1.6, right-click the image in Images and choose Load into Cluster. Gantry runs container cluster load-image, which copies the image into the containerd of each node. CLI 1.7 removed this command, so Gantry hides the action there.
container cluster load-image --name dev myapp:dev
When the cluster services do not answer
If a cluster command fails with cluster service unavailable, Gantry checks how the CLI is installed. A Homebrew build without the cluster plugins gets the message that the build lacks the cluster services and a Download Installer… link to the signed package. In other cases, Gantry offers Restart Services….
Choose a CNI
The default is the bundled kindnet manifest. Choose Custom manifest to install your own CNI, for example Calico or Cilium, from a file. Choose None to install a CNI yourself later; until then, the nodes stay NotReady.
Run Kubernetes on a Mac with Apple container
Apple's container tool can create a local Kubernetes cluster in one command. Each node is a lightweight virtual machine on your Mac. This guide goes from an empty Mac to a running deployment, first in the terminal and then in Gantry.
What you need
- A Mac with Apple silicon and macOS 26 or later.
- The
containerCLI 1.7.1 from the signed.pkgon the apple/container releases page. The Homebrew build of 1.7.1 does not include the cluster services, socontainer clusterfails with cluster service unavailable. - About 6 GB of free memory for the example below: three nodes with 2 GB each.
kubectlif you want to use the cluster from the terminal (brew install kubectl).
Start the services once after you install the package:
container system start
Create the cluster
This command makes a cluster named dev with one control-plane node and two workers. Each node gets 2 CPUs and 2 GB of memory:
container cluster create --name dev --cpus 2 --memory 2g \
--workers count=2,cpus=2,memory=2g --shared-image-store
--workers count=N,cpus=C,memory=Msizes a group of workers. Repeat it for groups of different sizes. Without--workers, one node is both control plane and worker.--cpusand--memorysize the control plane. The default is a quarter of the CPUs and memory of your Mac, at least 2 CPUs and 2 GB.--shared-image-storelets the nodes use your local images (see below). You cannot change it later: delete the cluster and create it again.--cni ./calico.yamlinstalls your own CNI instead of the bundled kindnet;--cni NONEinstalls none.
The CLI adds a context named dev to ~/.kube/config. Check the nodes:
container cluster list --nodes
kubectl --context dev get nodes
Run a local image without a registry
With --shared-image-store, the nodes can run any image in your local container image store. Build an image and use it by name:
printf 'FROM nginx:alpine\n' > Dockerfile
container build -t hello:dev .
kubectl --context dev create deployment hello --image=hello:dev
kubectl --context dev get pods
kubectl rollout restart with imagePullPolicy: Always, or use a new tag. With IfNotPresent, a node keeps the copy it already has. Anything with root on a node can read every image in your local store, including private images, so use the shared store for local development only.On CLI 1.5 and 1.6 there is no shared store. Use container cluster load-image there, or Load into Cluster in Gantry. CLI 1.7 removed load-image.
Open the app in a browser
Forward a local port to the deployment, then open http://localhost:8080:
kubectl --context dev port-forward deployment/hello 8080:80
Stop and delete the cluster
container cluster delete --name dev
If the control-plane node stops, for example after container system stop, delete the cluster and create it again. Create a throw-away cluster with --rm to remove its nodes when they stop.
Common problems
- cluster service unavailable: the CLI is the Homebrew build, or the services are not running. Install the signed package, or restart the services with
container system stopandcontainer system start. Gantry shows the same advice in Clusters. - An old cluster is missing from the list: CLI 1.7 does not list clusters created with 1.6 or earlier. Remove one with
container cluster delete --name <name>. - Nodes stay NotReady: you used
--cni NONE. Apply a CNI manifest. - You cannot stop a node container: this is on purpose.
container stopanddeleterefuse cluster nodes; usecontainer cluster delete.
How this compares with Docker Desktop and OrbStack
Docker Desktop has built-in Kubernetes with kubeadm (one node) or kind (several nodes), and OrbStack has a built-in single-node cluster. container cluster runs kubeadm on kindest/node images, each node in its own VM, with multi-node clusters and the shared image store. See the full comparison.
Clusters from AI agents
The Gantry MCP server has list_clusters, create_cluster and delete_cluster, so an agent such as Claude Code can make a temporary cluster for a test and remove it after.
claude mcp add gantry -- /Applications/Gantry.app/Contents/Resources/gantry-mcp
More on apple/container
For a step-by-step walk-through from the terminal, read Run Kubernetes on a Mac with Apple container. Read the apple/container guide for each container command and its Gantry feature, or see how Gantry compares with Docker Desktop, OrbStack and Podman Desktop.
Questions and answers
Does Apple container support Kubernetes?
Yes. The container CLI creates Kubernetes clusters whose nodes run as containers: container cluster in CLI 1.6.1 and 1.7, container k8s in CLI 1.5.0 to 1.6.0. Gantry gives this a GUI.
Does Gantry support container cluster?
Yes. Gantry lists, creates and deletes clusters on apple/container hosts, shows their nodes, writes the kubeconfig and opens the cluster in its Kubernetes browser. On CLI 1.7 it also sizes the workers and turns on the shared image store. It uses cluster or k8s to match your CLI version.
How do I use kubectl with an apple/container cluster?
When the CLI creates a cluster, it adds a kubeconfig context named after the cluster to ~/.kube/config. Run kubectl --context <name> get nodes. To keep a separate file, use Write Kubeconfig in Gantry; the default path is ~/.kube/<name>.kubeconfig.
How do I get a local image into the cluster without a registry?
On CLI 1.7, create the cluster with Use local images (--shared-image-store). Pods then run the images you build or pull with container, by name. On CLI 1.5 and 1.6, right-click the image in Images and choose Load into Cluster; Gantry runs container cluster load-image. CLI 1.7 removed load-image.
Can I create a multi-node cluster?
Yes. Set the number of workers in the create sheet; workers need CLI 1.6.0 or later. On CLI 1.7, you also set the CPUs and memory of the workers apart from the control plane.
Can I use my own CNI such as Calico or Cilium?
Yes. Choose Custom manifest and select the manifest file, or choose None and apply a CNI yourself after the cluster starts. Nodes stay NotReady until a CNI runs. None needs CLI 1.6.0 or later. The default CNI is the bundled kindnet manifest.
Why does Gantry say the cluster services are unavailable?
The container services did not answer a cluster command. If your CLI is a Homebrew build without the cluster services, Gantry says so and links to the signed installer on the apple/container releases page. Otherwise it offers Restart Services.
Do I need kubectl to use the cluster in Gantry?
No. Gantry talks to the Kubernetes API itself: it reads the kubeconfig, then lists resources, streams logs, opens a shell, forwards ports and applies YAML without kubectl. A cluster made with container cluster create is ready to browse right away.
Can I run Kubernetes on a Mac without Docker?
Yes. Apple's container CLI creates Kubernetes clusters itself with container cluster create. Each node runs as a lightweight VM, and you do not need Docker, Docker Desktop, kind or minikube.
How many nodes can a container cluster have?
One control plane and as many workers as your Mac has CPUs and memory for. Set them with --workers; on CLI 1.7 each group of workers can have its own CPUs and memory.
Which Kubernetes version does container cluster use?
CLI 1.7.1 uses the kindest/node:v1.35.5 node image by default. Choose another version with --node-image, for example docker.io/kindest/node:v1.34.11. Gantry shows the version in the cluster overview.
Last updated 2026-11-23.