# 使用 Homebrew 安装 socktainer

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

## 安装

```sh
sudo av install brew:socktainer
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install socktainer
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:socktainer
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/socktainer>
- **版本:** 1.0.0
- **来源摘要:** Docker-compatible REST API on top of Apple container
- **主页:** <https://socktainer.github.io>
- **仓库:** <https://github.com/socktainer/socktainer>
- **上游文档:** <https://github.com/socktainer/socktainer#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/socktainer/socktainer/archive/refs/tags/v1.0.0.tar.gz>
- **最后更新:** 2026-06-18T21:20:33Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- socktainer (cli)
- socktainer (别名)

## 依赖

- container

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: Socktainer exposes a Docker-compatible REST API. You can connect any tools you installed for Docker daemon. To connect it to your tools, add the following to ~/.bash_profile or ~/.zshrc: export DOCKER_HOST=unix://$HOMEBREW_PREFIX/var/run/socktainer/.socktainer/container.sock
- Bottle: 可用 于 arm64_tahoe

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.0.0
- 管理器更新时间: 2026-06-18
- 本地数据: OK
- 上游仓库: https://github.com/socktainer/socktainer
- 检测到的最新版本: v1.0.0 (当前)
## 项目历史与用法

socktainer is a young macOS command-line daemon that exposes a Docker-compatible REST API on top of Apple's containerization libraries, letting existing Docker clients talk to Apple Container through a local Unix socket.

### 项目历史

The upstream README describes socktainer as both a CLI and daemon, still closely tied to the fast-moving Apple Container ecosystem. The project tracks partial Docker Engine API compatibility and documents Docker CLI and Docker Compose workflows rather than presenting itself as a full Docker replacement.

The project's release history began with a v0.0.1 prerelease in September 2025 and reached v1.0.0 in June 2026, according to its official GitHub releases. That places it in the first wave of package-manager tools adapting Apple's newer local-container stack for developers who already have Docker-oriented muscle memory.

### 采用历史

Adoption evidence is early but concrete: the README documents Homebrew installation, GitHub release binaries, and a former project tap that users can untap after moving to the Homebrew formula.

The README also says the Podman Desktop Apple Container extension uses socktainer to visualize Apple containers and images, giving the tool a role beyond its own command line.

### 使用方式

Typical use is to start socktainer, switch Docker to the automatically created socktainer context, and then run familiar commands such as docker ps, docker images, docker run, and Docker Compose workflows against Apple's container backend.

The daemon listens by default on $HOME/.socktainer/container.sock, supports common lifecycle, image, log, stats, health, and event operations, and exposes macOS-specific choices such as Apple Container VM memory mapping and volume sync modes.

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

socktainer matters to package-manager and CLI culture because it is a compatibility shim: a small package that lets a new platform-native runtime participate in the Docker-shaped tooling ecosystem.

For Homebrew users, it is a good example of why formulae often package adapters rather than only upstream engines. The interesting artifact is not just the Swift daemon, but the way it bridges Docker contexts, Unix sockets, Compose expectations, Apple Silicon constraints, and rapidly changing vendor APIs.

### 时间线

- 2025-09: v0.0.1 prerelease published on GitHub.
- 2025-09: v0.1.0 and v0.2.0 followed as early public releases.
- 2026-06: v1.0.0 published with Apple Container 1.0.0-related changes.

### Related projects

- Apple Container: the macOS container backend socktainer wraps.
- Docker Engine API and Docker CLI: the compatibility surface socktainer exposes to users.
- Podman Desktop Apple Container extension: a desktop integration that the socktainer README says uses socktainer.
- Colima and other local macOS container runtimes: neighboring tools in the macOS container developer workflow.

### 来源

- <https://api.github.com/repos/socktainer/socktainer/releases>
- <https://github.com/socktainer/socktainer#readme>
- source_facts.executables
- source_facts.package-manager


## 安全说明

没有找到 socktainer 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** socktainer
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** arch, macos, xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Cloud CLI packages](https://www.automicvault.com/zh-hans/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [container](https://www.automicvault.com/zh-hans/pkg/brew/container/) - Runtime dependency declared by Homebrew.
- [apfel](https://www.automicvault.com/zh-hans/pkg/brew/apfel/) - Local package facts share a topical domain. Shared terms: api, apple, compatible.
- [container-compose](https://www.automicvault.com/zh-hans/pkg/brew/container-compose/) - Local package facts share a topical domain. Shared terms: apple, container, docker.
- [ctop](https://www.automicvault.com/zh-hans/pkg/brew/ctop/) - Local package facts share a topical domain. Shared terms: container, docker, top.

## Combined YAML source

View the package source record on GitHub. [combined/socktainer.yml](https://github.com/automic-vault/db/blob/main/combined/socktainer.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
