登录 注册

container

去点 Star
其他
51,301
Stars
1,821
Forks
197
Watchers
601
Open Issues
Apache-2.0
许可证
Swift
语言
2025-05-30
创建时间
2026-11-12
最近更新

项目能做什么

以 Swift 编写并针对 Apple silicon 优化,通过轻量级虚拟机在 Mac 上运行 Linux 容器。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<h1>
  <img alt="Containerization logo" src="./assets/Containerization-Logo.png" width="70" valign="middle">
  &nbsp;container
</h1>

`container` is a tool that you can use to create and run Linux containers as lightweight virtual machines on your Mac. It's written in Swift, and optimized for Apple silicon.

The tool consumes and produces [OCI-compatible container images](https://github.com/opencontainers/image-spec), so you can pull and run images from any standard container registry. You can push images that you build to those registries as well, and run the images in any other OCI-compatible application.

`container` uses the [Containerization](https://github.com/apple/containerization) Swift package for low-level container, image, and process management.

![introductory movie showing some basic commands](./docs/assets/landing-movie.gif)

## Get started

### Requirements

You need a Mac with Apple silicon to run `container`. To build it, see the [BUILDING](./BUILDING.md) document.

`container` is supported on macOS 26, since it takes advantage of new features and enhancements to virtualization and networking in this release. We do not support older versions of macOS and the `container` maintainers typically will not address issues that cannot be reproduced on macOS 26.

### Initial install

Download the latest signed installer package for `container` from the [GitHub release page](https://github.com/apple/container/releases).

To install the tool, double-click the package file and follow the instructions. Enter your administrator password when prompted, to give the installer permission to place the installed files under `/usr/local`.

Start the system service with:

```bash
container system start
```

### Run your first container

```bash
container run --rm alpine echo hello
```

This pulls the `alpine` image, runs it in a lightweight Linux VM, prints `hello`, and
removes the container when it exits. See the [tutorial](./docs/tutorials/start-here.md)
for a fuller walkthrough that builds and publishes an image of your own.

### Upgrade or downgrade

For both upgrading and downgrading, you can manually download and install the signed installer package by following the steps from [initial install](#initial-install) or use the `update-container.sh` script (installed to `/usr/local/bin`).

If you're upgrading or downgrading, you must stop your existing `container`:

```bash
container system stop
```

To upgrade to the latest release, simply run the command below:

```bash
/usr/local/bin/update-container.sh
```

To downgrade, you must uninstall your existing `container` (the `-k` flag keeps your user data, while `-d` removes it):

```bash
/usr/local/bin/uninstall-container.sh -k
/usr/local/bin/update-container.sh -v 0.3.0
```

Start the system service with:

```bash
container system start
```

### Uninstall

Use the `uninstall-container.sh` script (installed to `/usr/local/bin`) to remove `container` from your system. To remove your user data along 
阅读完整原文

项目深度分析 AI 生成

原生 macOS 轻量级容器管理桌面端 (GUI Client)

产品构想针对 apple/container 仅提供 CLI 的现状,基于 SwiftUI 构建原生、轻量、高颜值的 Mac 桌面端管理工具,提供类似 OrbStack / Docker Desktop 的界面体验。
核心功能容器生命周期可视化控制、镜像拉取/搜索/构建管理、日志与实时监控看板、端口映射与卷管理、菜单栏状态快捷挂载。
目标用户不习惯纯 CLI 操作的 Mac 开发者、中小团队工程师。
难度/周期中等 · 1-2 个月 · 成本:开发机器(Apple Silicon Mac)、苹果开发者账号费用($99/年)
收费模式买断制 License(通过 Gumroad/LemonSqueezy)或订阅制;提供基础免费版与 Pro 高级功能版。
竞争风险苹果官方后续可能自行推出官方 GUI(推测);OrbStack 等竞品功能已非常成熟,竞争激烈。
依据 AI推测

开发者本地多容器/网关编排辅助工具

产品构想基于官方示例(如三层架构与网关应用),开发面向微服务本地联调的轻量编排与路由工具,提供本地自动分配 .test 域名、SSL 证书自动配置与微服务拓扑管理。
核心功能服务拓扑配置文件解析、自动生成本地轻量网关与 DNS/HTTPS 代理、服务健康检查与依赖链一键启动。
目标用户需要在本地运行多微服务架构的 Web/云原生开发者。
难度/周期中等 · 2-3 个月 · 成本:低(主要为开发时间成本)
收费模式个人 Pro 订阅、团队多席位许可。
竞争风险若 apple/container 生态对 Compose 等成熟规范的兼容不足,需要额外实现转换适配层。
依据 尚需验证的假设

企业级 Mac 本地容器安全与合规审计插件/工具

产品构想面向采用 Apple 硬件的中大型企业,提供结合 apple/container 的镜像安全扫描、合规检查与镜像源访问控制工具。
核心功能本地构建镜像漏洞扫描(CVE检测)、强制公司内网私有镜像源准入策略、敏感配置与凭据泄露拦截、企业审计日志导出。
目标用户中大型企业安全团队、平台工程团队 (Platform Engineering)。
难度/周期高 · 3-5 个月 · 成本:低到中等(漏洞库源对接与集成测试)
收费模式B2B 席位订阅、年度企业支持合同。
竞争风险企业销售周期长,且 apple/container 当前系统版本与生态成熟度可能未达企业大面积铺开标准。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2025-05-30,近 30 天仍在推送,发布过 27 个 Release
社区活跃Star 51,301 / Fork 1,821 / Issue 601(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。