# 使用 Homebrew, Nix 安装 docker-ls

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

## 安装

```sh
sudo av install brew:docker-ls
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install docker-ls
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#docker-ls
```

  证据: nixpkgs package indexes: pkgs/by-name/do/docker-ls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:docker-ls
- **软件包管理器:** Homebrew
- **版本:** 0.5.1
- **来源摘要:** Tools for browsing and manipulating docker registries
- **主页:** <https://github.com/mayflower/docker-ls>
- **仓库:** <https://github.com/mayflower/docker-ls>
- **最后更新:** 2026-07-28T14:10:41+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- docker-ls (别名)
- docker-rm (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.5.1
## 项目历史与用法

docker-ls is a small Go command-line toolkit for browsing Docker Registry HTTP API v2 registries. Its package value is less about being a general Docker replacement and more about exposing registry-level details, especially tag lists, manifests, and sha256 content digests, that are useful when maintaining private registries or cleaning up old image tags.

### 项目历史

The project presents itself as two CLI tools, docker-ls and docker-rm, centered on Docker registry browsing and tag manipulation. The README ties it to Docker Distribution/v2 registries, token authentication, OAuth2 credentials from docker login, basic auth, and Docker credential helpers, placing it in the ecosystem of registry operations rather than container runtime management.

### 采用历史

Its README documents distribution through GitHub releases, Homebrew, Gentoo, NixOS, Arch AUR, Docker images, and Go source installation. That packaging spread is the main adoption signal: docker-ls became a convenience utility for users who wanted registry inspection from package managers instead of hand-written Registry API calls.

### 使用方式

Typical usage is listing repositories on a registry, listing tags for a repository, inspecting a tag's manifest, dumping raw manifests, parsing manifest history, and deleting tags through docker-rm. It can reuse credentials from docker login, target a custom registry with --registry, and output YAML, JSON, or configured templates.

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

For package maintainers and registry operators, docker-ls sits in the practical gap between the high-level docker CLI and the lower-level Registry API. It is notable because it packages registry inventory, manifest inspection, digest lookup, and deletion workflows into small executables that can be installed beside Docker.

### 时间线

- Docker Registry v2 era: The project targets only v2 registries and the Docker Distribution API.
- Package-manager adoption: The README documents Homebrew, Gentoo, NixOS, and Arch AUR installation paths.
- Credential integration: The tool documents reuse of Docker credential stores and helpers for authenticated registries.

### Related projects

- Related projects include Docker Distribution, Docker Hub, Docker credential helpers, the Docker CLI, and registry-cleanup scripts that operate directly against the Registry HTTP API.

### 来源

- <https://github.com/mayflower/docker-ls#readme>
- <https://github.com/distribution/distribution>
- <https://docs.docker.com/registry/spec/auth/token/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.docker-ls.[yaml|json|toml|...]
## 其他软件包管理器记录

- Nix - docker-ls: normalized package name match | nixpkgs package indexes: pkgs/by-name/do/docker-ls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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