# Rancher Desktop

用于容器和 Kubernetes 的本地开发环境，配备 Linux 虚拟机、containerd 或兼容 Docker 的 Moby 引擎，以及桌面管理工具。

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

- **最新版本**: `1.25.0`
- **开发者**: SUSE / Rancher Desktop contributors
- **主页**: <https://rancherdesktop.io/>
- **分类**: [虚拟化与容器](https://opennavo.com/zh/categories/virtualization)
- **安装**: `brew install --cask rancher`
- **近 30 天安装**: 1,773
- **Homebrew**: 可以安装，应用会自行更新
- **下载地址**: <https://github.com/rancher-sandbox/rancher-desktop/releases/download/v1.25.0/Rancher.Desktop-1.25.0.aarch64.dmg>
- **SHA-256**: `17b93863838fc3860d4adb0fa58a76a283011c3ea8743205b306e23f5282c671`

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

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "delete": [
            "/opt/rancher-desktop",
            "/private/etc/sudoers.d/zzzzz-rancher-desktop-lima",
            "/private/var/run/docker.sock",
            "/private/var/run/rancher-desktop-*"
          ],
          "quit": "io.rancherdesktop.app"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "app": [
        "Rancher Desktop.app"
      ],
      "target": "/Applications/Rancher Desktop.app"
    },
    "phase": "install",
    "sources": [
      "Rancher Desktop.app"
    ],
    "target": "/Applications/Rancher Desktop.app",
    "type": "app"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/.kuberlr",
            "~/.rd",
            "~/Library/Application Support/Caches/rancher-desktop-updater",
            "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/io.rancherdesktop.app.sfl*",
            "~/Library/Application Support/Rancher Desktop",
            "~/Library/Application Support/rancher-desktop",
            "~/Library/Caches/io.rancherdesktop.app*",
            "~/Library/Caches/rancher-desktop",
            "~/Library/Logs/rancher-desktop",
            "~/Library/Preferences/ByHost/io.rancherdesktop.app*",
            "~/Library/Preferences/io.rancherdesktop.app.plist",
            "~/Library/Preferences/rancher-desktop",
            "~/Library/Saved Application State/io.rancherdesktop.app.savedState"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

Rancher Desktop 是一个开源桌面环境，用于构建和运行容器及本地 Kubernetes 集群。在 macOS 上，它在虚拟机内运行 Linux 容器环境。它提供容器仪表板、镜像管理、Kubernetes 设置、端口转发，以及 kubectl、Helm、nerdctl 和 Docker 兼容工具等内置命令行工具。它面向本地开发和测试，并非托管式生产 Kubernetes 服务。

### 容器引擎与 Kubernetes
一次只能选择一个容器引擎。containerd 使用 nerdctl 和容器命名空间；dockerd (Moby) 提供 Docker Engine API 和 Docker CLI 工作流。无需安装 Docker Desktop。切换引擎后，原引擎下创建的镜像和工作负载将不可用；选择引擎并不会迁移其存储数据。

Kubernetes 是可选功能，可单独启用或禁用。启用后，Rancher Desktop 会管理基于 K3s 的本地集群及其版本，并通过 kubectl 和集群仪表板提供访问。应用清单前，请选择所需的 Kubernetes 上下文，以免命令作用于其他集群。发布的端口和挂载的主机目录会根据你的配置，让工作负载能够访问虚拟机外部资源。

### 安装与资源
Rancher Desktop 要求 macOS 13 Ventura 或更高版本、支持虚拟化的 Apple Silicon 或 Intel x86-64 处理器，以及持续可用的互联网连接。文档建议至少配备 8 GB 内存和四个 CPU；工作负载可能需要更多内存、CPU 和磁盘空间。下载文件按架构区分：1.24.0 的 Apple Silicon DMG 为 648,410,732 字节，Intel DMG 为 701,015,407 字节，尚不包含虚拟机镜像和容器数据。

将应用从 DMG 复制到“应用程序”文件夹并打开。选择引擎和 Kubernetes 设置，分配虚拟机资源，然后等待环境初始化并下载所需组件。从镜像仓库下载内容及使用私有镜像仓库可能需要互联网访问和各自的凭据。Rancher Desktop 本身免费，本地运行无需付费订阅 Rancher 或 Docker Desktop。

### 权限与共存
许多工作流无需启用管理员访问。未启用时，Docker 套接字位于 ~/.rd/docker.sock，Docker 工具使用 rancher-desktop 上下文。启用后会创建 /var/run/docker.sock，并启用可从本地网络访问的桥接地址，同时提示输入管理员凭据。vmnet 桥接网络路径还会在端口 53 上使用 macOS mDNSResponder，因此在该配置下，无法将容器 DNS 服务器转发到主机端口 53。

Docker Desktop 和其他本地容器工具可能争用默认 Docker 套接字、CLI 上下文、发布的端口，以及大量虚拟机资源。必要时停止存在冲突的环境，并明确检查当前使用的 Docker 和 Kubernetes 上下文。Rancher Desktop 不会合并其他工具的镜像、卷或容器。应将容器引擎和扩展视为具有强大权限的本地软件：挂载主机目录的容器可以更改这些目录中的文件，发布的服务也可能暴露数据。恢复出厂设置和删除环境可能会移除本地容器、镜像和集群数据，因此请先保存重要数据。

### 许可证与更新
应用采用 Apache License 2.0 许可证；内置工具和镜像保留各自的许可证。镜像仓库、云服务和可选的外部服务可能有单独的费用或账号要求。匿名使用情况统计的收集和自动更新均可在“偏好设置”中控制。

1.24.0 版本修复了 1.23.0 和 1.23.1 中的自动更新失败问题。使用这些版本且无法通过应用下载更新的用户，需要使用官方安装程序。另行公布的 Rancher Desktop 2.0 alpha 是早期技术预览版，并非此 1.24.0 软件包，也不是可用于生产环境的替代版本。

官方来源：[项目](https://rancherdesktop.io/)、[安装要求](https://docs.rancherdesktop.io/getting-started/installation/)、[容器引擎](https://docs.rancherdesktop.io/ui/preferences/container-engine/general/)、[管理员访问与偏好设置](https://docs.rancherdesktop.io/ui/preferences/application/general/)、[源代码与许可证](https://github.com/rancher-sandbox/rancher-desktop)、[1.24.0 版本](https://github.com/rancher-sandbox/rancher-desktop/releases/tag/v1.24.0)。

## 系统要求

- macOS 13 起 · 应用版本: 1.25.0 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 核查于 2026-11-25
  - <https://github.com/rancher-sandbox/rancher-desktop/releases/download/v1.25.0/Rancher.Desktop-1.25.0.x86_64.dmg>
  - SHA-256: `859c6384ac33e8c1ddc0f37eb8e0ed26cdd977d6ac0a58b9235e7a2a4c33080b`
- macOS 13 起 · 应用版本: 1.25.0 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 核查于 2026-11-25
  - <https://github.com/rancher-sandbox/rancher-desktop/releases/download/v1.25.0/Rancher.Desktop-1.25.0.aarch64.dmg>
  - SHA-256: `17b93863838fc3860d4adb0fa58a76a283011c3ea8743205b306e23f5282c671`

## Rancher Desktop 的安全事实

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

- <https://github.com/rancher-sandbox/rancher-desktop> · 是否开源: 是 — <https://github.com/rancher-sandbox/rancher-desktop> · 核查于 2026-11-13

## 卸载

- `brew uninstall --cask rancher`

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

### 卸载时还会处理

- 文件和文件夹: `/opt/rancher-desktop` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `/private/etc/sudoers.d/zzzzz-rancher-desktop-lima` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `/private/var/run/docker.sock` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `/private/var/run/rancher-desktop-*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

### 深度清理（可选）

- `brew uninstall --zap --cask rancher`

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

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

- 文件和文件夹: `~/.kuberlr` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/.rd` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/Caches/rancher-desktop-updater` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/io.rancherdesktop.app.sfl*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/Rancher Desktop` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/rancher-desktop` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/io.rancherdesktop.app*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/rancher-desktop` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Logs/rancher-desktop` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/ByHost/io.rancherdesktop.app*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/io.rancherdesktop.app.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/rancher-desktop` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Saved Application State/io.rancherdesktop.app.savedState` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 以上条目来自 Homebrew 定义，核查于 2026-11-25；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 1.25.0 (2026-11-05)

Rancher Desktop 1.25.0 于 2026-11-05 发布。本次更新增加越南语界面，删除容器和卷前会先询问，并堵住经 networks.yaml 在 macOS 上取得 root 的路径。

- 在 Preferences > Application > General 下增加越南语。它和 1.24.0 增加的八种语言一样，仍是实验性的。应用常用字体缺少多数带声调的字母，因此越南语文本改用系统已安装的字体。
- Containers 和 Volumes 页面上的 Delete 现在会先询问。对话框统计容器或卷的数量，并按名称列出。Cancel 是默认按钮，因此 Esc 和 Enter 都会退出。
- Containers、Volumes、Forwarding 和 Diagnostics 的表格每页最多显示 1000 行。Containers 和 Volumes 以前是 10 行。Forwarding 和 Diagnostics 以前是 100 行。
- 在 macOS 上，以你的身份运行的进程可以通过管理员访问提示取得 root。Rancher Desktop 把 Lima 的 networks.yaml 里的值写进它以 root 安装的 sudoers 文件，而你的用户账户可以编辑这个文件。现在，若 networks.yaml 里的地址不全是 IPv4，就把它改名为 networks.orig.yaml，并改用默认网络；传给以 root 运行的命令的路径里拒绝 shell 语法。
- 不再信任八个可以从证书恢复私钥的 eMudhra 中间证书颁发机构。1.24.0 会接受它们签发的 TLS 证书，包括应用内和虚拟机内。1.25.0 在应用、复制进虚拟机的主机 CA 证书、虚拟机镜像或 WSL 发行版、它的 Go 程序，以及 Spin 应用里都不再信任它们。
- 在 macOS 上，使用 VZ 虚拟机类型并启用 Kubernetes 时，每次 Kubernetes 启动后大约一分钟内出站连接会失败。捆绑的 Lima 现在允许 128 个进行中的连接，并在 30 秒后放弃每一个。
- macOS 和 Linux 上的 Pod 不再继承主机的 DNS 搜索域。需要的 Pod 可以设置 dnsConfig.searches。
- 关闭 Traefik 时现在只删除 Traefik 的 Helm chart。定义 chart 留给 k3s。在较慢的机器上，k3s 仍可能在 Traefik 消失之前移除该 chart。
- 恢复出厂设置之后，即使 Kubernetes 已关闭，更新检查也能工作。
- Containers 页面的多选重新可用，包括 macOS 上的 Shift-click 和 Cmd-click。容器名称前的斜杠已去掉。Standalone Containers 标签已翻译。
- 设置校验会拒绝诸如 6443oops 的端口、2.5 的 CPU 数量，以及用 null 或列表代替一组设置。
- Extensions 目录提供 Docker Desktop 扩展主题，并提供 Tachometer 0.2.6。
- 已知问题：Rancher Desktop 已在运行时，不带设置标志的 rdctl start --wait 会失败，提示为 start command: no settings to change were given。后端仍在启动时，需要重启的设置可能在重启开始前就返回。
- Rancher Desktop 1.26 将去掉早于 1.32 的 Kubernetes 版本。1.25 仍允许退回。锁定旧版本的部署配置文件会让 Kubernetes 在 1.26 上无法启动，直到修改该配置文件。
- 相对 1.24.0 的捆绑工具：docker 29.6.2 到 29.9.3，docker-compose 5.3.1 到 5.7.0，docker-buildx 0.35.0 到 0.38.2，docker-credential-helpers 0.9.8 到 0.9.12，helm 4.2.3 到 4.3.1，kuberlr 0.7.0 到 0.9.0，trivy 0.72.0 到 0.76.1，spin 4.0.2 到 4.2.6，spin-shim 0.25.1 到 0.27.2，cert-manager 1.21.0 到 1.21.3。nerdctl 仍是 2.2.2。

仅 Windows 的说明未写入此处。完整列表见 GitHub release。

来源：https://github.com/rancher-sandbox/rancher-desktop/releases/tag/v1.25.0

## 资料与来源

- <https://opennavo.com/zh/apps/rancher>
- <https://opennavo.com/zh/apps/rancher/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/rancher.rb> · 核查于 2026-11-25
- <https://formulae.brew.sh/cask/rancher>
- <https://github.com/rancher-sandbox/rancher-desktop> · 核查于 2026-11-13
