apple-container
它能做什么
这个程序可以让你在搭载 Apple Silicon 芯片的 Mac 上创建和管理“容器”(用来运行程序的隔离环境)。它使用苹果自家的工具,不需要安装 Docker 也能运行。
适用场景
- ✓当你想在 Mac 上把程序放到单独的环境中运行时。
- ✓当你想在 Apple Silicon 芯片的 Mac 上使用 Docker 的替代方案时。
- ✓当你需要在 Mac 上管理 Linux 容器时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/apple-container/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我该如何运行一个简单的 Alpine Linux 容器?”
每周 5 个新技能,1 分钟读完。
工作原理
它使用一个名为 'container' 的苹果工具,为每个容器创建轻量级虚拟机。这意味着每个程序都相互隔离运行,不需要像 Docker 那样依赖一个中央程序。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Apple container
When to Use
- Use when building, running, or managing OCI/Linux containers on Apple-silicon macOS with Apple's open-source
containerCLI - Use when you want lightweight per-container VMs instead of a Docker daemon
- Use when translating Docker-style workflows (build, run, exec, logs, networking) to Apple's container tooling
Apple's container is an open-source CLI for building, running, and managing OCI/Linux
containers on Apple-silicon Macs. Each container runs inside its own lightweight virtual
machine (backed by the Containerization framework and the Virtualization API), so there is no
shared daemon like Docker — services run per-user via launchd. Images are standard OCI
artifacts, so they interoperate with Docker registries and other OCI tooling. The CLI is
deliberately Docker-like (container run, container build, and image ops under
container image push/pull), but it is a distinct tool: do not assume Docker command paths,
flags, defaults, or daemon behavior carry over (e.g. there is no container images/push/pull
top-level command — image verbs live under container image).
Safety Gate
Container installation, service startup, image pulls, builds, runs, registry login, pushes, and resource cleanup change local or remote state. Explain the exact command, image registry, mounts, ports, privileges, and data-persistence impact, then obtain explicit user approval before executing it. Do not provide registry credentials, mount sensitive paths, or expose ports without the user's explicit instruction.
Requirements
- Apple silicon only (M1 or later). Intel Macs are not supported.
- macOS 26 (Tahoe) is the officially supported target. The maintainers do not support
older macOS and typically will not fix issues that can't be reproduced on 26. The binary
still runs on macOS 15 (Sequoia) but with reduced networking: only the single default
subnet is available, and the
container networkgroup and--networkflag error out. macOS-26-gated features are called out throughout the reference files. - Version: this skill documents the 1.0.0 release (the fullest feature set). The
machinegroup,container cp,container export,container prune,container image prune,container registry list, andcontainer system versionwere added in 1.0.0 (not in 0.7.1) — features that postdate 0.7.1 are flagged (1.0.0+) in the reference files. Runcontainer --versionandcontainer <group> --helpto see what your installed build supports. - Install by downloading the signed
.pkginstaller from the project's GitHub releases (apple/container) and running it. Seereferences/concepts.mdfor the full requirements/compatibility matrix and how the VM-per-container model works.
Setup
Install the signed package, then start the background services once:
- Download the latest signed installer
.pkgfrom the GitHub releases page. - Double-click the downloaded package and follow the prompts, entering your admin
password so it can place files under
/usr/local. (There is no documented CLIinstallerinvocation — installation is via the GUI package.) - Start the services and confirm they are healthy:
# Start the container services (container-apiserver + helpers via launchd). On first run it
# offers to install the default Linux kernel — accept it, or start non-interactively with
# `--disable-kernel-install` and add a kernel later via `container system kernel set`.
container system start
# Verify services are healthy
container system status
container system start must have run before any container/image/build command works — a
connection/XPC error almost always means the services are stopped, so run it again. Stop and
deregister the launchd services with container system stop (which takes only -p/--prefix).
The startup flags for container system start (-a/--app-root, --install-root, --log-root,
--enable-kernel-install/--disable-kernel-install, --timeout) are in
references/configuration.md.
Upgrade / downgrade / uninstall use helper scripts in /usr/local/bin (stop first with
container system stop): update-container.sh (add -v <version> to pin a version), and
uninstall-container.sh -d to remove user data or -k to keep it. Full recipes in
references/workflows.md.
Command groups at a glance
…
常见问题
我需要安装 Docker 吗?
不需要。这个程序是 Docker 的替代方案,不需要预先安装 Docker。
在所有 Mac 上都能用吗?
不能。它只支持搭载 Apple Silicon 处理器(M1 或更新型号)的 Mac。
安装起来复杂吗?
不复杂。你可以从项目官网下载安装文件并运行,然后需要手动启动一次程序的服务。
详情
作者的原始描述
Build, run, and manage OCI/Linux containers as lightweight per-container VMs on Apple-silicon macOS using Apple's open-source container CLI, no Docker daemon required.
热度
- GitHub 星标
- 48k
- 排名
- #3805
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。