apple-container
Skill1 starsChanged 8 months agoMITView on GitHub
Run isolated Linux containers on macOS Apple Silicon via Apple's native `container` CLI. Use when the agent needs a sandboxed shell, an untrusted script runner, or a non-host runtime (Python, Node, etc.) without Docker.
- Installs packages
3 other projects use a version of this.
Adopted by
Most recently taken up by
- sanjay3290/ai-skillstheir own version, first seen Jul 6, 2026
- jcordon5/apple-container-skilltheir own version, first seen Jun 15, 2026
- lizhelang/apple-container-operatortheir own version, first seen Jun 15, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- sanjay3290/ai-skills★ 429same name
- jcordon5/apple-container-skill★ 7same name
- lizhelang/apple-container-operator★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 78
Default container has 1 GiB RAM and 4 CPUs.
- Distinctive: line 79
All mounts go through the host → lightweight VM → container, which adds a sync step on first access.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Apple Container (Minimal)
Apple's container CLI runs each Linux container in a lightweight VM using the
Containerization framework. No daemon, no Docker Desktop. Apple Silicon + macOS
15+ required (macOS 26+ for full networking).
This skill covers only what run_in_container depends on. For the full CLI
reference, see Apple's docs or the upstream apple-container-skill repo.
Install
brew install --cask containerVerify:
container --version
container system start # one-time setup; may prompt for Linux kernel install
container system statusThe one command you actually need
container run --rm [--network none] [-v <host>:<container>[:ro]] [-w <workdir>] <image> sh -lc "<command>"Flags used by run_in_container:
| Flag | Meaning |
--rm | Delete the container after exit (always on in the tool) |
--network none | No network egress from the container (default; safest) |
--network bridge | Enable egress (opt-in) |
-v host:container[:ro] | Bind-mount (host side confined to --cwd via safePath) |
-w /path | Set working directory inside the container |
Example the agent can run directly:
container run --rm --network none -v $(pwd)/data:/data:ro python:3.12-slim \
sh -lc "python /data/script.py"Picking an image
| Use case | Image |
| Generic shell | alpine:3.20 (tiny, ~5 MB) |
| Python | python:3.12-slim |
| Node | node:22-alpine |
| No-network linting / parsing | any of the above with --network none |
Pull once to warm the cache:
container image pull python:3.12-slimTroubleshooting
container: command not found— install withbrew install --cask container.services not running—container system start.--networkerrors on macOS 15 — user-defined networks require macOS 26+; stick with--network noneor omit the flag.- Anonymous volumes (
-v /path, no host side) are NOT cleaned by--rmincontainer.run_in_containeravoids this by always pairing host and container paths. - Container can't reach the internet — you passed
--network none(default). Passnetwork: "bridge"in the tool args.
Gotchas
containeris NOT a Docker replacement. It supports the Docker-ish subset of flagsrun_in_containeruses; avoid Docker-specific features (--link,--device, etc.).- Default container has 1 GiB RAM and 4 CPUs. Override with
--memory/--cpusif needed (the tool does not surface these; edit the agent if you need it). - All mounts go through the host → lightweight VM → container, which adds a sync step on first access. Small files are fine; gigabyte dirs are not.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

