Install in Claude Code
Copygit clone --depth 1 https://github.com/sanjay3290/ai-skills /tmp/apple-container && cp -r /tmp/apple-container/skills/apple-container ~/.claude/skills/apple-containerThen start a new Claude Code session; the skill loads automatically.
Definition
SKILL.md
# Apple `container` 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`). ## 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 network` group and `--network` flag 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 `machine` group, `container cp`, `container export`, `container prune`, `container image prune`, `container registry list`, and `container system version` were **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. Run `container --version` and `container <group> --help` to see what your installed build supports. - Install by downloading the signed `.pkg` installer from the project's GitHub releases (`apple/container`) and running it. See `references/concepts.md` for the full requirements/compatibility matrix and how the VM-per-container model works. ## Setup Install the signed package, then start the background services once: 1. **Download** the latest signed installer `.pkg` from the [GitHub releases page](https://github.com/apple/container/releases). 2. **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 CLI `installer` invocation — installation is via the GUI package.) 3. **Start the services** and confirm they are healthy: ```bash # 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 Invoke everything as `container <group> <subcommand>`. Container-lifecycle verbs (`run`, `create`, `start`, `stop`, `exec`, `logs`, `inspect`, `list`/`ls`, `delete`/`rm`, `kill`, `stats`) and `build` are top-level; image operations like `push`, `pull`, and `tag` live under `container image`. Run `container <group> --help` for exact flags, or read `references/commands.md` for the exhaustive matrix. | Group | What it does | Example | |-------|--------------|---------| | container lifecycle | Create, start, run, stop, exec, inspect, list, remove containers | `container run --rm -it docker.io/library/alpine sh` | | build | Build an OCI image from a Dockerfile in the builder VM | `container build -t myapp:latest .` | | image | List, tag, inspect, remove, load/save, prune local images; push/pull to registries | `container image ls` | | registry | Authenticate (login/logout/list) to OCI registries | `container registry login ghcr.io` | | system | Start/stop/status services, logs, disk usage (`df`), DNS, kernel, properties | `container system status` | | network | Create/list/remove container networks (**macOS 26 only**) | `container network create mynet` | | volume | Create/list/inspect/remove persistent volumes | `container volume create data` | | builder | Manage the builder VM that runs `container build` (start/stop/status) | `container builder status` | | machine *(1.0.0+)* | Persistent Linux "machine" environments (added in 1.0.0) | `container machine --help` | Exact subcommand names, aliases, arguments, and flags for each group live in `references/commands.md` — consult it before running an unfamiliar command rather than guessing Docker-equivalent syntax. ## Navigating this skill Read the reference file that matches the task; do not guess flags or behavior. - **`references/commands.md`** — exhaustive CLI reference: every command group, subcommand, alias, argument, and flag. Read this to construct any concrete `container ...` invocation, or to confirm a flag exists before using it. - **`references/concepts.md`** — architecture (VM-per-container, Containerization framework), system requirements and macOS 15 vs 26 differences, networking model, per-container IPs, security model, and a Docker-vs-`container` comparison. Read this to
More from this repository
atlassianSkill
|
azure-devopsSkill
|
deep-researchSkill
Execute autonomous multi-step research using Google Gemini Deep Research Agent. Use for: market analysis, competitive landscaping, literature reviews, technical research, due diligence. Takes 2-10 minutes but produces detailed, cited reports. Costs $2-5 per task.
elevenlabsSkill
|
gmailSkill
|
google-calendarSkill
|
google-chatSkill
|
google-docsSkill
|