Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix 安装 container

查看 container 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install container

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install container

MacPorts ports tree · devel/container/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#container

nixpkgs package indexes · pkgs/by-name/co/container/package.nix · 来源: api.github.com

概览

软件包摘要

Create and run Linux containers using lightweight virtual machines

命令和别名

  • container
  • container-apiserver

历史

项目历史与用法

Apple's `container` is a macOS-focused CLI for creating and running Linux containers as lightweight virtual machines. It is written in Swift, optimized for Apple silicon, and designed around OCI-compatible images and registries.

项目历史

Apple published the initial 0.1.0 release in June 2025 and reached 1.0.0 in June 2026. The README describes the project as active development, with stability guarantees limited to patch versions until the 1.0.0 milestone.

采用历史

Official documentation frames the tool around macOS developers who need Linux containers without a shared Linux VM. The project also became package-manager-relevant quickly because Homebrew, MacPorts, and Nix package records appeared around a first-party Apple runtime rather than a Docker Desktop replacement package.

使用方式

The CLI can start the system service, pull and run OCI images, build images from Dockerfiles, push images to registries, and manage containers, images, registries, builders, and system components. Its technical overview explains that each container runs in its own lightweight VM through Apple's Containerization package and macOS frameworks such as Virtualization, vmnet, XPC, launchd, Keychain services, and unified logging.

为什么软件包爱好者会关心

For package nerds, `container` is significant because it makes Apple's native container stack installable and scriptable as a CLI. Its use of OCI images preserves interoperability with existing registries, while its macOS-only virtualization model creates a distinct packaging target from Linux containerd/runc stacks and Docker Desktop-style bundles.

时间线

  • 2025: 0.1.0 release published.
  • 2026: 1.0.0 release published.
  • 2026: Documentation states support targets macOS 26 and Apple silicon.

Related projects

  • `container` uses Apple's Containerization Swift package for low-level container, image, and process management. Its technical overview also connects it to OCI image standards and macOS platform frameworks.

安全态势

风险级别:orange

broad file, network, media, or database tool signal. formula declares a Homebrew service.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • broad file, network, media, or database tool signal
  • formula declares a Homebrew service
  • infrastructure mutation or orchestration signal

信号

  • metadata:service
  • text:container,virtual machine
  • text:server

安装行为

  • Homebrew 为此 formula 声明了 post-install 钩子。
  • formula 元数据声明了服务或守护进程块。
  • Homebrew bottle 元数据适用于 1 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
containercli全局可执行文件
container-apiservercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.1.0
管理器更新时间2026-07-06
本地数据OK
上游当前
检测到的最新版本1.1.0

https://github.com/apple/container

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:container
版本1.1.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/container
主页https://apple.github.io/container/documentation/
仓库https://github.com/apple/container
上游文档https://apple.github.io/container/documentation
许可证Apache-2.0
源码归档https://github.com/apple/container/archive/refs/tags/1.1.0.tar.gz
最后更新2026-07-06T21:40:21Z
Pulseupdated
Bottle可用 (于 arm64_tahoe)
Homebrew post-install已定义
服务declared

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecontainer
Version Scheme0
Revision0
Head VersionHEAD
Requirements
  • arch
  • macos
  • xcode
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

container

nix profile install nixpkgs#container
  • normalized package name match
  • 匹配方式:Container
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/co/container/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

container

sudo port install container
  • normalized package name match
  • 匹配方式:Container
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/container/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment