# container を Homebrew, MacPorts, Nix でインストール

container のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:container
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install container
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install container
```

  証拠: MacPorts ports tree: devel/container/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#container
```

  証拠: nixpkgs package indexes: pkgs/by-name/co/container/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:container
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.2.0
- **ソース概要:** Create and run Linux containers using lightweight virtual machines
- **ホームページ:** <https://apple.github.io/container/documentation/>
- **リポジトリ:** <https://github.com/apple/container>
- **最終更新:** 2026-07-29T17:23:24+01:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- container (エイリアス)
- container-apiserver (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.2.0
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://github.com/apple/container#readme>
- <https://github.com/apple/container/blob/main/docs/technical-overview.md>
- <https://github.com/apple/container/blob/main/docs/tutorials/start-here.md>
- <https://github.com/apple/container/releases/tag/0.1.0>
- <https://github.com/apple/container/releases/tag/1.0.0>
- <https://apple.github.io/container/documentation>


## セキュリティノート

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

- **Geiger リスク:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service
- infrastructure mutation or orchestration signal

## 他のパッケージマネージャ記録

- Nix - container: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/container/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - container: normalized package name match | MacPorts ports tree: devel/container/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/container.yml](https://github.com/mxcl/pkgdb/blob/main/combined/container.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
