Token导航 LogoToken导航TokenDH.com
运维和基础设施执行命令github未标认证来源可访问clear审计提醒

container-use容器使用

Agent Skill

container-use 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

710

周安装

29

GitHub Stars

公开资料未说明

下载量

227
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/olafgeibig/skills --skill container-use

简介

Container Use 指导在 macOS 上使用 Apple 原生容器工具运行 Linux 容器。

  • 每个容器独立 VM 运行,提供强隔离与跨平台构建支持。
  • 替代 Docker Desktop,适用于 Apple Silicon Mac 开发者环境搭建。
  • 需下载官方安装包并完成系统权限授权方可正常使用。
  • container-use 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Apple Container Usage

Guide for using Apple's container tool to run Linux containers on macOS.

TL;DR

container runs Linux containers in lightweight virtual machines (one VM per container) on macOS 26+ (Apple Silicon). It creates a native, secure, and performant alternative to Docker Desktop.

When to Use

  • You want to run Linux containers on macOS without the overhead of Docker Desktop.
  • You need strong isolation (VM per container).
  • You are developing on macOS 26+ with Apple Silicon.
  • You want to build multi-platform images (arm64/amd64).

Installation

  1. Download: Get the latest signed .pkg from GitHub Releases.
  2. Install: Double-click the .pkg and follow instructions.
  3. Start Service: container system start

Common Workflows

1. Running Containers

Basic run (similar to Docker):

# Run interactive alpine shell
container run -it --rm alpine:latest sh

# Run web server detached with port mapping
container run -d --name web -p 8080:80 nginx:latest

Key Options:

  • --cpus <count>: Limit CPUs (default: 4)
  • --memory <size>: Limit RAM (default: 1G). e.g., --memory 4g
  • --volume <host>:<container>: Mount volumes. container run -v ~/project:/code python:3.9
  • --ssh: Forward host SSH agent (great for git in containers). container run --ssh -it ubuntu git clone git@github.com:me/repo.git
  • --mac-address <addr>: Set custom MAC address.

2. Building Images

Builds run in a special builder VM.

# Build current directory
container build -t my-app:latest .

# Build for multiple architectures
container build --arch arm64 --arch amd64 -t my-app:multi .

*Tip: Increase builder resources if builds are slow:*

container builder start --cpus 8 --memory 16g

3. Managing State

# List running containers
container ls

# List all (including stopped)
container ls -a

# Stop/Start
container stop <name>
container start <name>

# View logs
container logs -f <name>

# Monitor stats (CPU/RAM)
container stats

4. Networking

Apple Containers use vmnet. Each network is isolated.

# Create a new isolated network
container network create backend --subnet 192.168.100.0/24

# Run container in network
container run --network backend nginx

References

  • Tutorial - Guided tour of building and running a simple web server.
  • How-to Guide - Tasks like sharing files, multi-platform builds, and networking.
  • Command Reference - Comprehensive list of CLI commands and options.

Migration from Docker

Docker CommandContainer CommandNotes
docker run...container run...Mostly compatible flags (-v, -p, -d, -it)
docker pscontainer ls
docker build...container build...
docker logs...container logs...
docker exec...*No direct equivalent yet*Use ssh or attach if supported, or design containers to not need exec.
docker network...container network...

Key Differences:

  • Architecture: Docker Desktop uses one big VM. container uses one lightweight VM *per container*. This improves isolation but changes resource usage patterns.
  • Storage: Images and containers are stored in ~/Library/Containers/....
  • Daemon: The daemon (vminitd) runs per-container inside the VM.

Troubleshooting

System Logs: If something fails, check the system logs:

container system logs

Uninstall: To remove everything (including data):

/usr/local/bin/uninstall-container.sh -d

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

28.09%
按下载量换算64

Antigravity

23.39%
按下载量换算53

OpenCode

17.71%
按下载量换算40

Gemini CLI

13.68%
按下载量换算31

Codex

7.87%
按下载量换算18

windsurf

3.25%
按下载量换算7

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/olafgeibig/skills --skill container-use;npx skills add olafgeibig/skills --skill "container-use" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills