Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计提醒

apple-container-skillApple container 技能

Agent Skill

apple-container-skill 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

576

周安装

24

GitHub Stars

2

下载量

192
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:apple-container-skill(Apple container 技能)
来源仓库:https://github.com/gabeosx/agent-skills
仓库路径:skills/apple-container-skill
安装命令:
npx skills add https://github.com/gabeosx/agent-skills --skill apple-container-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/gabeosx/agent-skills --skill apple-container-skill

简介

apple-container-skill 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。

  • 适用于 Apple 容器化环境管理、系统服务启动和内核安装的场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认容器状态和内核版本。
  • 安装前建议检查维护状态,避免触发不必要的系统操作或网络请求。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Apple Container Skill

To use the Apple Container CLI, execute the commands below using the run_shell_command tool. Note: This CLI is specific to Apple's container implementation.

Common Workflows & Architecture

These patterns represent best practices for using the Apple Container CLI effectively.

1. System Lifecycle Management

Unlike standard Docker Desktop, the container system services are explicit.

  • Startup: Always verify container system status before running operations. If stopped, run container system start.
  • Kernel: On first run, system start may prompt to install a Linux kernel. The agent should be aware of this initialization step.
  • Cleanup: To save resources when not in use, run container system stop.

2. Networking & Connectivity

  • DNS: For stable service discovery, configure a local domain:

1. sudo container system dns create <domain> (e.g., test) 2. container system property set dns.domain <domain> 3. Access containers via http://<container-name>.<domain>.

  • Inter-Container: Containers are on a vmnet. Direct IP communication (192.168.64.x) works but can be fragile due to isolation.
  • Host Gateway Strategy (Reliable Fallback):

- Standard Method: Use host.docker.internal to connect to services running on the host (macOS). This is the preferred and most portable method. - Manual Method: If for some reason the hostname fails, you can use the Host Gateway IP (192.168.64.1). - *Note:* Disable SSL (sslmode=disable) if connection resets occur via the gateway.

  • Localhost: Port forwarding (-p 8080:80) works as expected for accessing containers from the host.

3. Data Persistence

  • Volume Initialization: New volumes may contain a lost+found directory, which can cause "directory not empty" errors.
  • Best Practice: Always configure services (like PostgreSQL) to use a subdirectory within the volume.

- *Example:* PGDATA=/var/lib/postgresql/data/pgdata instead of the root mount point.

4. Development Patterns

  • Git/SSH: Use the --ssh flag (container run --ssh...) to forward the host's SSH agent. This is the preferred method for cloning private repositories inside containers.
  • Hot Reloading: Use --volume (e.g., -v $(pwd):/app) to mount source code for immediate feedback, just like standard Docker.
  • Builder Tuning: The build process runs in its own VM. For large builds, explicitly scale the builder: container builder start --cpus 4 --memory 8g.

Critical Setup

Before running containers, the system services usually need to be running.

  • Check Status: container system status
  • Start Services: container system start (may require sudo if installing kernel/root components, but usually run as user)

Commands

System Management

  • container system start: Starts the container services.

- Options: --enable-kernel-install, --disable-kernel-install, --app-root <path>, --install-root <path>.

  • container system stop: Stops the container services.

- Options: --prefix <string>, --all-domains (stops services in all launchd domains).

  • container system status: Checks if services are running.

- Options: --format <format> (e.g., json).

  • container system version: Shows CLI and API server versions.
  • container system logs: Displays system logs.

- Options: --follow, --last <time> (e.g., 5m, 1h).

  • container system df: Shows disk usage.
  • container system dns create <domain>: Creates a local DNS domain (requires sudo).
  • container system dns list: Lists configured local DNS domains.
  • container system dns delete <domain>: Deletes a local DNS domain (requires sudo).
  • container system property list: Lists system properties (config).
  • container system property get <id>: Gets a system property value.
  • container system property set <id> <value>: Sets a system property.

- Examples: container system property set dns.domain my.local

  • container system property clear <id>: Resets a system property to default.
  • container system kernel set: Installs/updates the Linux kernel.

- Options: --recommended, --arch <arch>, --binary <path>.

Container Lifecycle

  • container run [OPTIONS] IMAGE [COMMAND] [ARG...]: Runs a command in a new container.

- Common Options: - -d, --detach: Run in background. - -i, --interactive: Keep STDIN open. - -t, --tty: Allocate a pseudo-TTY. - -p, --publish <host-port:container-port>: Publish a port. - -v, --volume <host-path:container-path>: Mount a volume. - --name <string>: Assign a name. - --rm: Remove after stop. - -e, --env <key=value>: Set environment variable. - -u, --user <user>: Set user (name|uid[:gid]). - -w, --workdir <dir>: Set working directory. - -c, --cpus <count>: CPU limit. - -m, --memory <size>: Memory limit (e.g., 512M, 2G). - --init: Run an init process inside the container. - --init-image <image>: Specify a custom init filesystem image. - --read-only: Mount the container's root filesystem as read-only. - --ulimit <type=soft:hard>: Set ulimits.

  • container create [OPTIONS] IMAGE [ARG...]: Creates a container without starting it (same options as run).
  • container start [OPTIONS] CONTAINER...: Starts stopped containers.

- Options: -a, --attach, -i, --interactive.

  • container stop [OPTIONS] CONTAINER...: Stops running containers.

- Options: -t, --time <seconds> (wait before kill), -s, --signal <signal>.

  • container kill [OPTIONS] CONTAINER...: Kills containers immediately.

- Options: -s, --signal <signal>.

  • container delete [OPTIONS] CONTAINER...: Deletes containers (aliases: rm).

- Options: -f, --force (delete even if running).

  • container exec [OPTIONS] CONTAINER COMMAND [ARG...]: Executes a command in a running container.

- Options: -it, -d, -w, -e, -u, --user.

  • container list [OPTIONS]: Lists containers (aliases: ls, ps).

- Options: -a, --all (show stopped too), -q (quiet, IDs only).

  • container inspect CONTAINER...: JSON details of containers.
  • container logs [OPTIONS] CONTAINER: Fetches container logs.

- Options: -f, --follow, --tail <n>, --boot (show boot logs).

  • container stats: Live stream of resource usage.

- Options: --no-stream.

  • container export CONTAINER: Exports container's filesystem to an image/tar archive.
  • container prune: Removes all stopped containers.

Image Management

  • container build [OPTIONS] PATH: Builds an image from a Dockerfile.

- Options: -t <tag>, -f <dockerfile>, --build-arg <key=val>, --no-cache, -o, --output <type>, --pull (fetch latest image), --dns <dns> (custom DNS).

  • container image pull [OPTIONS] NAME[:TAG]: Pulls an image from a registry.

- Options: --platform <os/arch> (e.g., linux/amd64, linux/arm64), --arch <arch>, --os <os>.

  • container image push NAME[:TAG]: Pushes an image.
  • container image list: Lists local images (aliases: ls, images).
  • container image delete [OPTIONS] IMAGE...: Deletes images (aliases: rm, rmi).

- Options: -f, --force (force delete).

  • container image prune: Removes unused images.
  • container image tag SOURCE TARGET: Tags an image.
  • container image inspect IMAGE...: JSON details of images.
  • container image save -o <path> IMAGE: Saves image to tar.

- Options: --platform <os/arch>.

  • container image load -i <path>: Loads image from tar.

Volume Management

  • container volume create [OPTIONS] NAME: Creates a volume.

- Options: -s, --size <size>, --label <key=val>.

  • container volume list: Lists volumes (aliases: ls).
  • container volume inspect NAME...: JSON details.
  • container volume delete NAME...: Deletes volumes (aliases: rm).
  • container volume prune: Removes unused volumes.

Network Management

  • container network create NAME: Creates a network.

- Options: --subnet <cidr>, --subnet-v6 <cidr>, --label <key=val>.

  • container network list: Lists networks (aliases: ls).
  • container network inspect NAME...: JSON details.
  • container network delete NAME...: Deletes networks (aliases: rm).
  • container network prune: Removes unused networks.

Registry & Builder

  • container registry login SERVER: Log in to a registry.

- Options: -u <username>, --password-stdin, --scheme <auto|https|http>.

  • container registry logout SERVER: Log out.
  • container registry list: Lists configured registries.
  • container builder status: Check BuildKit builder status.
  • container builder start: Start the builder manually.

- Options: --cpus <count>, --memory <size>.

  • container builder stop: Stops the builder.
  • container builder delete: Deletes the builder.
  • container builder prune: Clear builder cache.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

28.88%
按下载量换算55

Gemini CLI

22.47%
按下载量换算43

OpenCode

16.68%
按下载量换算32

Claude Code

11.71%
按下载量换算22

Antigravity

6.85%
按下载量换算13

windsurf

3.63%
按下载量换算7

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills