agentleFS
builtbyVbuiltbyV/agent-builder/skills/apple-container/SKILL.md

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

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. sanjay3290/ai-skills★ 429same name
    2. jcordon5/apple-container-skill★ 7same name
    3. 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.

  • In this repository2 other files it gives its agents.

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
  1. Very specific:

    Default container has 1 GiB RAM and 4 CPUs.

    line 78
  2. Distinctive:

    All mounts go through the host → lightweight VM → container, which adds a sync step on first access.

    line 79

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 container

Verify:

container --version
container system start         # one-time setup; may prompt for Linux kernel install
container system status

The 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:

FlagMeaning
--rmDelete the container after exit (always on in the tool)
--network noneNo network egress from the container (default; safest)
--network bridgeEnable egress (opt-in)
-v host:container[:ro]Bind-mount (host side confined to --cwd via safePath)
-w /pathSet 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 caseImage
Generic shellalpine:3.20 (tiny, ~5 MB)
Pythonpython:3.12-slim
Nodenode:22-alpine
No-network linting / parsingany of the above with --network none

Pull once to warm the cache:

container image pull python:3.12-slim

Troubleshooting

  • container: command not found — install with brew install --cask container.
  • services not running — container system start.
  • --network errors on macOS 15 — user-defined networks require macOS 26+; stick with --network none or omit the flag.
  • Anonymous volumes (-v /path, no host side) are NOT cleaned by --rm in container. run_in_container avoids this by always pairing host and container paths.
  • Container can't reach the internet — you passed --network none (default). Pass network: "bridge" in the tool args.

Gotchas

  • container is NOT a Docker replacement. It supports the Docker-ish subset of flags run_in_container uses; avoid Docker-specific features (--link, --device, etc.).
  • Default container has 1 GiB RAM and 4 CPUs. Override with --memory / --cpus if 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.