Show HN: Davit,一款 Apple 容器用户界面
Show HN: Davit, a Apple Containers UI

原始链接: https://davit.app

Davit 是一款免费、开源且完全原生的 macOS 应用程序,专为在 Apple 芯片上管理 Linux 容器而设计,无需使用 Docker Desktop。它完全采用 SwiftUI 构建,通过 XPC 直接与 Apple 原生容器守护进程通信,确保了轻量级的体验,且不包含 Electron、Web 视图或不必要的后台代理。 该应用提供了一套完整的管理功能,包括 CPU 和内存的实时监控、通过 iTerm 或 Terminal 的一键终端访问,以及简化的容器重建功能。它支持镜像、卷和网络的管理,并允许通过 TOML 轻松配置平台设置。 Davit 的主要优势在于其使用了 Apple 原生的虚拟化框架,实现了亚秒级的启动速度,并针对来自任何镜像仓库的 OCI 兼容镜像进行了性能优化。用户无需管理员权限即可通过 Davit 直接安装平台。Davit 体积仅为 17 MB,为传统的容器管理工具提供了一种精简、高性能的替代方案,在完全通过原生 macOS API 运行的同时,保持了与现有镜像的完全兼容。

Davit (davit.app) 是一款适用于 Apple 原生容器化框架的全新轻量级 macOS 前端。该工具由用户 *xinit* 开发,采用“直觉编程”(vibe-coded)方式,即在人工智能的深度辅助下完成。凭借其极小的体积(约 17–56 MB),它在 Hacker News 上引起了广泛关注,与 Docker Desktop 或流行的 OrbStack 等重量级工具形成了鲜明对比。 **讨论要点总结:** * **效率:** Docker Desktop 需要运行一个庞大且占用资源较多的虚拟机来承载所有容器,而 Davit 则利用 Apple 的原生容器化技术,为每个容器启动轻量且隔离的虚拟机。 * **性能:** 用户称赞该应用具有“原生”感,且没有 Electron 应用常见的性能开销。尽管一些人质疑其对比 OrbStack 的效率优势,但另一些人则看好其在降低基础内存占用方面的潜力。 * **人工智能集成:** 该项目代表了“直觉编程”软件日益增长的趋势,即 AI 在开发中起到了主要作用,这也引发了关于软件质量和编程未来的讨论。 * **开发进度:** 作者正在积极采纳反馈,例如增加文件系统浏览和教程文档等功能。 尽管一些用户仍倾向于 Docker Desktop 深度集成的功能,但对于寻求简洁体验的 macOS 用户而言,Davit 不失为一个充满潜力且精简的替代方案。
相关文章

原文
Davit — a native macOS UI for Apple containers
Davit app icon

A fully native macOS app for Apple's container platform — run Linux containers on Apple silicon, no Docker Desktop required.

Free & open source · MIT licensed · Signed & notarized

Requires an Apple silicon Mac running macOS 15 or later.
Or via Homebrew: brew install wouterdebie/tap/davit

Davit dashboard showing service status, resource counts, disk usage and a live CPU chart
The dashboard: services, disk usage and live CPU across all running containers.

Everything you'd expect. Nothing you don't.

Davit talks directly to Apple's open-source container daemon over XPC — the same wire path the CLI uses. No Electron, no web views, no background agents of its own.

📦

Containers

Start, stop, restart and delete with live CPU, memory and IP on every row. Streaming logs with follow & boot mode, live stat charts, and raw config inspection.

🖥️

One-click terminal

Open an interactive shell in any running container, straight into Terminal or iTerm — over the native API, no CLI needed.

🪄

Edit & Recreate

Containers are immutable — so Davit prefills a new one from the old config with the image's entrypoint and env subtracted, letting you change ports, env vars, mounts or resources in seconds.

💿

Images, volumes, networks

Pull with live progress, run from any image, tag, prune. Create sized volumes and custom subnets. See what's in use before you delete it.

⚙️

Platform settings, editable

Default CPU/memory for new containers, registry, DNS, builder resources — edited in the app, validated by the platform's own config loader, saved as clean TOML overrides.

⬇️

Installs the platform for you

No container platform installed? Davit downloads Apple's signed installer, verifies it, and sets everything up in your user Library — no administrator rights needed. It can add the container CLI to your shell, too.

Native, down to the pixels.

Built entirely in SwiftUI. Menu bar quick actions, a Dock icon only when you want one, and live charts that don't spin up a browser to render.

How is this different from Docker Desktop?

  • It's Apple's engine. Each container runs in its own lightweight VM via Apple's Virtualization framework — sub-second boots, per-container IP addresses, optimized for Apple silicon.
  • OCI all the way. Pulls from Docker Hub, ghcr.io, quay.io or any registry. Your existing images just work.
  • Nothing between you and the daemon. Davit links Apple's own client library and speaks XPC directly — no socket shims, no license agreements, no accounts.
  • Tiny. A single ~17 MB app.
联系我们 contact @ memedata.com