Command Palette

Search for a command to run...

Назад к скиллам
скилл № 48777

container

Guide for using Apple Container CLI to run Linux containers on Apple silicon Macs (macOS 26+). Use when managing OCI containers, building images, configuring…

БесплатноЗапускает вложенные скрипты
vinnie357от vinnie357★ 30 звёзд на GitHub

Установить container в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Apple Container CLI

This skill activates when working with Apple Container for running Linux containers natively on Apple silicon Macs.

What is Apple Container?

Apple Container is a macOS-native tool for running Linux containers as lightweight virtual machines on Apple silicon:

  • Swift-based: Built on Apple's Virtualization.framework
  • OCI-compatible: Produces and runs standard OCI container images
  • Apple silicon only: Requires Apple silicon Mac (M1 or later)
  • Stable 1.0: Currently at version 1.4.1 (released 2026-09-09); 0.x minor releases carried frequent breaking changes — see Version Differences below when upgrading
  • Lightweight VMs: Each container runs as a lightweight Linux VM

Prerequisites

  • macOS 26 or later (Tahoe)
  • Apple silicon Mac (M1, M2, M3, M4 series)
  • Install via signed .pkg from GitHub releases

System Management

Manage the container system service (start, stop, status, version, logs, disk usage) and its TOML configuration file. Full command list, flag tables, and the TOML config detail: references/command-reference.md.

⚠ BREAKING — 1.0.0: A TOML configuration file at ~/.config/container/config.toml replaces the UserDefaults-backed system properties. container system property get, set, and clear are REMOVED — edit the TOML file, then restart the service (container system stop && container system start).

Container Lifecycle

Run, manage, and export containers (run, list/ls, start, stop, kill, delete/rm, exec, logs, inspect, cp, stats, prune, clean, export, create). Full flag tables and worked examples: references/command-reference.md.

Two corrections worth keeping in view: a custom MAC address is set via --network <name>,mac=XX:XX:XX:XX:XX:XX on container run — there is no separate --mac-address flag. container export produces a filesystem tar only (-o/--output); it does not create or tag an image, and there is no -t/--tag flag. It supported only stopped containers from 0.11.0; 1.2.1 added support for exporting live (running) containers.

container clean (1.4.1+) cleans one or more RUNNING containers identified by explicit container ID, and is unrelated to the stopped-container accumulation problem described in Troubleshooting below — container prune remains the command for that. USAGE shows <container-ids> as optional, so a zero-argument invocation parses; what it then acts on is not established here (requires verification: run container clean with no arguments on a disposable host). Pass explicit IDs.

⚠ Observed — --rm does not reliably remove the container on 1.0.0. container run --rm ... left a stopped container behind on one host running Apple Container 1.0.0, despite --rm being set. This is stated as a direct operator observation at 1.0.0, not independently reproduced or verified against the binary here — do not treat it as confirmed on every 1.0.0 install. It is the likely accumulation mechanism behind roughly 300 stopped containers found on a dev host, a large share of them anonymous short-lived scan containers (e.g. from a gitleaks pre-commit hook that also relied on --rm). If a workflow depends on containers being reaped automatically, do not trust --rm alone on 1.0.0 — give the container an explicit unique --name and follow up with a defensive container rm -f <that-exact-name> scoped to only the container you just created. See Troubleshooting below for why an unscoped cleanup is worse than no cleanup at all. No release from 1.1.0 to 1.4.1 is documented as fixing this behavior. requires verification: re-run the --rm scenario on a 1.4.1 host and observe whether the container is reaped.

Container Machines (1.0.0+)

Machines are long-lived Linux environments with tight host integration — a full Linux system with init support, not an ephemeral application container. Use machines for "edit on the Mac, build inside Linux" workflows, running system services under systemd, and testing across multiple distributions. The subcommand alias is m (container m ls = container machine ls).

container machine create accepts --virtualization (enable nested virtualization; requires Apple Silicon M3+, macOS 15+, and a kernel with CONFIG_KVM=y), --home-mount <ro|rw|none> (host home directory mount mode inside the VM; default rw), --no-boot (create the machine without booting it), and --platform <platform> (target platform for a multi-platform image, taking precedence over --os/--arch). Full flag table: references/command-reference.md.

Isolation caveat: A machine auto-mounts the host home directory at /Users/<username> inside the VM, unless created with --home-mount none. That tight host integration makes machines a development convenience, NOT an isolation boundary for untr

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/command-reference.md
  • references/version-history.md
  • scripts/container-cleanup.nu
  • scripts/container-images.nu
  • scripts/container-lifecycle.nu
  • scripts/container-system.nu
  • templates/0.10.0/commands.md
  • templates/0.11.0/commands.md
  • templates/0.12.0/commands.md
  • templates/0.12.3/commands.md
  • templates/0.4.1/commands.md
  • templates/0.5.0/commands.md
  • templates/0.6.0/commands.md
  • templates/0.7.0/commands.md
  • templates/0.8.0/commands.md
  • templates/0.9.0/commands.md
  • templates/1.0.0/commands.md
  • templates/1.2.1/commands.md
  • templates/1.3.1/commands.md
  • templates/1.4.1/commands.md
  • templates/mise.toml

FAQ

Что делает скилл container?

Guide for using Apple Container CLI to run Linux containers on Apple silicon Macs (macOS 26+). Use when managing OCI containers, building images, configuring networks/volumes, running long-lived Linux machines with container machine, or working with container system services on macOS.

Как установить скилл container?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл container запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить container с