# Orchard

采用 Swift 开发的 Apple container 原生 macOS 界面，提供容器和镜像管理、Compose 项目、本地 Kubernetes、Linux 机器及本地 AI 工具。

> 这是 OpenNavo 上 Orchard 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/orchard>

- **最新版本**: `2.7.1`
- **开发者**: Andrew Waters
- **主页**: <https://github.com/andrew-waters/orchard>
- **分类**: [虚拟化与容器](https://opennavo.com/zh/categories/virtualization)
- **安装**: `brew install --cask orchard`
- **近 30 天安装**: 317
- **Homebrew**: 可以安装，由 Homebrew 更新
- **下载地址**: <https://github.com/andrew-waters/orchard/releases/download/v2.7.1/Orchard-2.7.1.dmg>
- **SHA-256**: `485efd65cd3740c618e7b1be5784fcad181802778de5285b7fa11751d11f1832`

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "app": [
        "Orchard.app"
      ],
      "target": "/Applications/Orchard.app"
    },
    "phase": "install",
    "sources": [
      "Orchard.app"
    ],
    "target": "/Applications/Orchard.app",
    "type": "app"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/Library/Application Support/Orchard",
            "~/Library/Caches/container-compose.Orchard",
            "~/Library/Preferences/container-compose.Orchard.plist"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

Orchard 是一款原生 Swift macOS 应用，用于管理 Apple 的容器运行时。它为 `container` 命令行工具提供桌面界面，并通过类型化 XPC API 与守护进程通信，而不是反复启动 CLI 并解析文本输出。

### 容器与开发
创建、启动、停止和检查容器；拉取和搜索镜像；通过 Dockerfile 构建镜像，并实时查看 BuildKit 日志。应用提供实时 CPU、内存、网络和磁盘信息、多窗格日志查看器、网络和 DNS 管理、菜单栏辅助工具，以及 Cmd+K 命令面板。构建记录和日志在应用重启后仍会保留。

### 项目与机器
Compose 项目的规划使用同一个开源 Swift 包，该包也为独立的 `container compose` 插件提供支持。不支持的 compose 键会在执行前明确告知，而非被静默忽略。由于运行时缺少健康状态报告，依赖顺序并不保证服务已就绪。Orchard 还使用 Apple 的 k8s 插件管理持久化 Linux 容器机器和本地 Kubernetes 集群。工作负载部署仍由 kubectl 等工具完成；Orchard 负责准备上下文并提供节点检查功能。

### 本地 AI
AI 模型面板可以发现已有的 Ollama、LM Studio 和 MLX 服务器，或管理 MLX 模型服务器的运行。推理在宿主 Mac 的 GPU 上执行，而非在容器虚拟机内执行。Orchard 会计算容器可访问的模型端点，并可在创建容器时注入 `OPENAI_BASE_URL`。沙盒视图提供关联模型的容器、隔离信息、聊天与终端访问功能，以及停止控件。

### 要求与安装
官方 2.6.0 要求列表写明 macOS 26 Tahoe 和 Apple container 1.6.0。说明同时注明仍兼容 container 1.5.x，但不能使用新增的 1.6 专属功能。单独安装 Apple container 后使用 `brew install --cask orchard` 或官方 DMG。2.6.0 在 container 1.6.0+ 上新增工作节点、无 CNI 集群、容器提交镜像及自定义机器账户；工作节点数与账户在创建时选择。读写挂载主目录会允许机器内进程，包括通过免密码 sudo 获得 root 的进程，修改 Mac 主目录文件。Orchard 采用 MIT 许可证，由 Andrew Waters 维护。

### 来源
- [官方仓库与 README](https://github.com/andrew-waters/orchard)
- [官方 2.5.1 版本与要求](https://github.com/andrew-waters/orchard/releases/tag/v2.5.1)
- [官方文档](https://orchard.andon.dev/)
- [Homebrew cask](https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/o/orchard.rb)

## 系统要求

- macOS 26 起 · 应用版本: 2.7.1 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/orchard.rb> · 核查于 2026-11-25
  - <https://github.com/andrew-waters/orchard/releases/download/v2.7.1/Orchard-2.7.1.dmg>
  - SHA-256: `485efd65cd3740c618e7b1be5784fcad181802778de5285b7fa11751d11f1832`
- macOS 26 起 · 应用版本: 2.7.1 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/orchard.rb> · 核查于 2026-11-25
  - <https://github.com/andrew-waters/orchard/releases/download/v2.7.1/Orchard-2.7.1.dmg>
  - SHA-256: `485efd65cd3740c618e7b1be5784fcad181802778de5285b7fa11751d11f1832`

## Orchard 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- <https://github.com/andrew-waters/orchard> · 是否开源: 是 — <https://github.com/andrew-waters/orchard> · 核查于 2026-11-13

## 卸载

- `brew uninstall --cask orchard`

普通卸载会删除应用本身，设置和缓存会保留。

### 深度清理（可选）

- `brew uninstall --zap --cask orchard`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `~/Library/Application Support/Orchard` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/orchard.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/container-compose.Orchard` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/orchard.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/container-compose.Orchard.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/orchard.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 2.7.1 (2026-11-09)

### Orchard v2.7.1

Thank you for using Orchard, and for the bug reports, ideas and pull requests that keep making it better. If it's useful to you, please consider [starring Orchard on GitHub](https://github.com/andrew-waters/orchard). It takes a second and helps other people find it.

#### Changes
##### Added
- On Apple container 1.7.1, Create Cluster has a **Use local images** option, on by default, which lets the nodes pull from the Mac's own image store (`container cluster create --shared-image-store`) ([#173](https://github.com/andrew-waters/orchard/issues/173)). An image built or pulled in Orchard then runs in the cluster without a registry or a copy. A cluster's detail says whether it can see the Mac's images; one that can't points to **Recreate**, since only a create can turn it on. Recreate keeps the choice.
- Containers Orchard creates follow the `[container.dns]` defaults in container's `config.toml` (nameservers, search domains, options and domain), as `container run` does from container 1.7.1 ([#173](https://github.com/andrew-waters/orchard/issues/173)). A field set in Orchard wins, then `[container.dns]`, then Orchard's chosen default domain, then container's `[dns].domain`. This covers the Run form, compose, sandboxes and model servers. Settings > General shows the defaults read-only next to the DNS Domain picker, and the Run form's empty domain choice names the domain it falls back to.

- On Apple container 1.7.1, Create Cluster can size the workers apart from the control plane ([#174](https://github.com/andrew-waters/orchard/issues/174)). With workers, the resource fields say they size the control plane, and **Size the workers** under Advanced sets the CPUs and memory each worker gets (`--workers count=<n>,cpus=<n>,memory=<size>`). Left off, a worker gets container's single-node defaults: a quarter of the Mac's CPUs and memory, at least 2 CPUs and 2 GB. Recreate reads the sizes off the live workers, keeps a cluster made in a terminal with workers of several sizes as it is, and otherwise uses the sizes the cluster was created with. Below 1.7 only a plain count is sent, as before.
- On Apple container 1.7.1, the Clusters tab reads what container stored for each cluster when it was created (`container cluster ls --format json`) ([#174](https://github.com/andrew-waters/orchard/issues/174)). The list and detail show the cluster's Kubernetes version, and the detail its creation date. Recreate takes the CNI and Kubernetes version from that record, so a cluster created outside Orchard recreates with its real settings, and falls back to what Orchard remembers for clusters made before 1.7. Those show a short note that `container cluster ls` doesn't list them; they can still be deleted. A cluster container has a record of but whose nodes are gone is listed with no nodes, so it can be recreated or deleted. If `cluster ls` fails, the tab works from the containers as before.
- Settings > System shows the kernel against the one the installed container version recommends ([#174](https://github.com/andrew-waters/orchard/issues/174)). When an older version's kernel is still installed it shows both and offers **Use Recommended Kernel**. A custom kernel is shown as custom and isn't flagged.
- Settings > System shows whether container's image snapshots and container file systems are backed up by Time Machine, and offers **Leave Out of Backups** when they are ([#174](https://github.com/andrew-waters/orchard/issues/174)). Both can be rebuilt by pulling the image or recreating the container, and container 1.7.1 leaves them out on new installs only. It sets the same exclusion as `tmutil addexclusion`, only when you choose it, and never touches named volumes. Nothing prompts for it, so putting the folders back in your backups is respected.

##### Changed
- Orchard now builds against Apple container 1.7.1 (containerization 0.54.0), up from 1.6.1 (containerization 0.53.0), and **Install container** installs 1.7.1 ([#173](https://github.com/andrew-waters/orchard/issues/173)).
- **Load Image** is gone on Apple container 1.7.1, which removed `container cluster load-image` ([#173](https://github.com/andrew-waters/orchard/issues/173)); **Use local images** replaces it. On 1.6.x it works as before.
- Orchard no longer stops, force stops or deletes a single cluster node, on any container version ([#173](https://github.com/andrew-waters/orchard/issues/173)). Acting on one node breaks the cluster's Kubernetes state, and container 1.7.1's CLI refuses it too. The detail header, context menus, multi-select cards, menu bar and Cmd+K leave those actions out for a node or turn them off with a note pointing to Clusters, and Stop All and the bulk stop and remove skip nodes and leave them out of their counts. Logs, terminals, stats and export still work on a node, and a cluster is still stopped or deleted from Clusters, including one made before container 1.6.1.
- Orchard now uses compose 0.9.0, and takes the rules for a failed `post_start` or `pre_stop` hook from it rather than keeping its own copy ([#130](https://github.com/andrew-waters/orchard/issues/130)): whether the run stops or carries on, what a failure reports and how much of a hook's output is kept. Hooks behave and read exactly as before. The Compose tab offers the matching 0.9.0 plugin update.
- The foot of the Compose tab shows the installed `container compose` version on its own, and links to its release on GitHub. A development build shows as the release it came after, marked (dev), and links to the commit it was built from.

##### Fixed
- Orchard no longer calls any `vmlinux-*` kernel the recommended one ([#174](https://github.com/andrew-waters/orchard/issues/174)). Someone still on the kernel container 1.6.1 installed was told they had the recommended kernel on 1.7.1.
- In full screen the list and detail headers (search, filters, sort and the add buttons) are no longer hidden behind the toolbar ([#167](https://github.com/andrew-waters/orchard/issues/167)). They sit just below it while the window is full screen, and the windowed layout is unchanged.
- Containers in a Compose project can reach each other by name ([#130](https://github.com/andrew-waters/orchard/issues/130)). Compose containers were created with a bare hostname, which container's DNS never matches, so a service could not find another as `<container>.<domain>`. They are now created under Orchard's default DNS domain (Settings > General > DNS Domain, else container's own default), as containers from the Run form are, with the same nameservers as before. The foot of the Compose tab shows it as **Default domain**, which opens Settings to change it, and says when `container compose` in a terminal would use another, since that reads only container's default from `config.toml`. Containers already running pick it up when they are next recreated.

##### Security
- Orchard now builds with swift-nio 2.105.0, swift-nio-extras 1.35.2 and swift-nio-http2 1.46.0, up from 2.97.1, 1.33.0 and 1.42.0, to pick up the SwiftNIO security fixes for unbounded HTTP/1 headers, a `ByteBuffer` overflow, CRLF injection in request URIs, a decompression ratio bypass and HTTP/2 request smuggling ([#170](https://github.com/andrew-waters/orchard/issues/170)). These libraries come in through Apple container and its dependencies; nothing Orchard calls changed.

#### Installation

**[Homebrew](https://formulae.brew.sh/cask/orchard)**
```
brew install orchard
```
Already installed with Homebrew? Update with:
```
brew upgrade orchard
```

**Download**
1. Download [Orchard-2.7.1.dmg](https://github.com/andrew-waters/orchard/releases/download/v2.7.1/Orchard-2.7.1.dmg)
2. Open it and drag Orchard.app to your Applications folder
3. Launch Orchard from Applications

Orchard also updates itself: when a new release is out, it offers the update in the app.

#### Checksums
- **SHA256**: [Orchard-2.7.1.dmg.sha256](https://github.com/andrew-waters/orchard/releases/download/v2.7.1/Orchard-2.7.1.dmg.sha256)

#### System Requirements
- macOS 26 (Tahoe)
- [Apple container](https://github.com/apple/container/releases/tag/1.7.1) 1.7.1

## 资料与来源

- <https://opennavo.com/zh/apps/orchard>
- <https://opennavo.com/zh/apps/orchard/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/o/orchard.rb> · 核查于 2026-11-25
- <https://formulae.brew.sh/cask/orchard>
- <https://github.com/andrew-waters/orchard> · 核查于 2026-11-13
