apple-container
Skill2 starsChanged 15 days agoMITView on GitHub
Use when running, building or debugging Linux containers, container machines or local Kubernetes clusters with Apple's `container` CLI on a Mac. Not for Docker, Podman, Colima or OrbStack.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- youknowone/pyretheir own version, first seen Oct 9, 2026
- RustPython/RustPythontheir own version, first seen Oct 8, 2026
- sanjay3290/ai-skillstheir own version, first seen Jul 6, 2026
- DonsWayo/skillstheir own version, first seen Jun 16, 2026
- jcordon5/apple-container-skilltheir own version, first seen Jun 15, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- RustPython/RustPython★ 23ksame name
- sanjay3290/ai-skills★ 452same name
- youknowone/pyre★ 8same name
- jcordon5/apple-container-skill★ 6same name
- DonsWayo/skills★ 0same 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.
In this repository10 other files it gives its agents.
- claude/CLAUDE.mdCLAUDE.md
- skills/setup-home-repo/template/CLAUDE.mdCLAUDE.md
- benchmarkSkill
- codebase-designSkill
- diagnoseSkill
- map-architectureSkill
- prototypeSkill
- setup-home-repoSkill
- specSkill
- unslopSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 4 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Run container --version and container system status.
- Very specific: line 14
If it is missing, the install is the signed .pkg from the releases page.
- Very specific: line 15
If the service is down, run container system start and accept the kernel download on first run.
- Very specific: line 19
Before using a flag you have not used in this session, run container <command> --help.
- Very specific: line 24
Every container has its own IP (container ls shows it), not a shared localhost.
- Distinctive: line 31
Start services one by one, and see networking for how they find each other.
- Distinctive: line 41
Only when the user wants a Linux environment to live in or needs systemd.
- Very specific: line 51
Before finishing, remove what you started: for c in $(container ls -a -q | grep '^agent-').
- Very specific: line 53
Use container run --rm <image> <cmd> for one-off commands, -d plus container logs for services, and container exec <name> <cmd> inside a …
- Distinctive: line 58
Never run such code in a machine.
- Very specific: line 59
Ask before anything that touches what you did not create: rm --all, image prune -a, volume prune, network prune, machine rm, cluster …
- Distinctive: line 63
Read the one that matches the task:
“Common” is measured: kept by at least 6 in 10 of the 5 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
container runs each Linux container in its own lightweight VM on Apple silicon, and reads and writes OCI images.
Most run and build flags match Docker's, so this file covers only where it differs and the defaults to apply when you act.
Before the first command
- Run
container --versionandcontainer system status. If it is missing, the install is the signed.pkgfrom the releases page; there is no Homebrew formula. If the service is down, runcontainer system startand accept the kernel download on first run. - Run
sw_vers -productVersion. macOS 26 is the supported target. On macOS 15 there is nocontainer network,--networkerrors, and containers cannot reach each other; use--publishonly. - Before using a flag you have not used in this session, run
container <command> --help. The CLI changes between releases and its help is the authority, not this file or your memory.
Where it differs from Docker
- Every container has its own IP (
container lsshows it), not a shared localhost. Reach a service from the Mac with-p host:containeror that IP. A service bound to127.0.0.1inside is unreachable; bind0.0.0.0, which the virtual network keeps off the outside world. - Defaults are 4 CPUs and 1 GiB per container, and 2 CPUs and 2 GiB for the builder VM.
To resize the builder:
container builder stop,container builder delete,container builder start --cpus N --memory M. - Memory freed inside a VM is not returned to macOS; restart a long-running memory-heavy container to release it.
- There is no Compose. Start services one by one, and see networking for how they find each other.
- Anonymous volumes (
-v /path) survive--rm; prefer named volumes. --schemeishttporhttps(defaulthttps); a plain-HTTP registry needs--scheme http.amd64images run under Rosetta; build both withcontainer build --arch arm64 --arch amd64.
Container, machine or cluster
- Container (
container run): one app, service or job. The default choice. - Machine (
container machine create): a persistent Linux box that boots the image's init, uses the host username and mounts the Mac home. Only when the user wants a Linux environment to live in or needs systemd. Read machines first. - Cluster (
container cluster create): local Kubernetes, experimental. Read cluster first.
Defaults when you act
Apply these unless the user asks otherwise.
- Name what you create
agent-<task>, for exampleagent-pg-test. Before finishing, remove what you started:for c in $(container ls -a -q | grep '^agent-'); do container rm -f "$c"; done, then the same withcontainer volume ls -qandcontainer network ls -qand theirrm. - Tool calls have no TTY, so never pass
-it. Usecontainer run --rm <image> <cmd>for one-off commands,-dpluscontainer logsfor services, andcontainer exec <name> <cmd>inside a running one. - Set
--cpusand--memoryfor anything heavier than a shell. - Mount the narrowest host path the task needs, with
:rounless it must write; never mount$HOME. - Pass
--sshonly when asked, since it lets the container use the user's ssh-agent. - For code you did not write or do not trust, use a plain container with no
--sshand no bind mounts, and on macOS 26 attach it to a network made withcontainer network create --internalso it has no internet. Never run such code in a machine. - Ask before anything that touches what you did not create:
rm --all,image prune -a,volume prune,network prune,machine rm,cluster delete,system stop, or aconfig.tomledit.
References
Read the one that matches the task:
- machines: container machine safety, creation, resizing and custom images.
- networking: ports, DNS names, container-to-container, host services, custom networks.
- storage: named and anonymous volumes, bind mounts, tmpfs, disk cleanup.
- cluster: local Kubernetes clusters.
- troubleshooting: symptoms with causes and fixes, logs,
config.toml.
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.

