# 使用 Homebrew, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 docker-compose

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install docker-compose
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install docker-compose
```

  证据: MacPorts ports tree: python/docker-compose/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install docker-compose
```

  证据: Debian stable package indexes: docker-compose from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install docker-compose
```

  证据: Fedora Rawhide package metadata: docker-compose from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

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

  证据: nixpkgs package indexes: docker-compose from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S docker-compose
```

  证据: Arch Linux sync databases: docker-compose from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install docker-compose
```

  证据: openSUSE Tumbleweed package metadata: docker-compose from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install docker-compose
```

  证据: Chocolatey community package catalog: docker-compose from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','dispcalgui.install'

- Scoop (92%):

```sh
scoop install main/docker-compose
```

  证据: Scoop official bucket manifest trees: bucket/docker-compose.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Docker.DockerCompose -e
```

  证据: Windows Package Manager source index: Docker.DockerCompose from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:docker-compose
- **软件包管理器:** Homebrew
- **版本:** 5.3.1
- **来源摘要:** Isolated development environments using Docker
- **主页:** <https://docs.docker.com/compose/>
- **仓库:** <https://github.com/docker/compose>
- **最后更新:** 2026-07-28T14:10:40+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- docker-compose (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Docker Compose is Docker's tool for defining and running multi-container applications from a Compose file. Docker's docs describe it as a way to manage services, networks, and volumes in one YAML configuration, then start the application stack with a single command.

### 项目历史

Compose became one of Docker's defining developer-experience tools because it translated a multi-container application into a file that could live beside source code. The current upstream README describes the modern Go-based Compose as a Docker CLI plugin and notes that the legacy Python version remains on the v1 branch.

### 采用历史

Compose's adoption path runs through Docker Desktop, Linux binaries, distribution packages, and CI systems. The README says Docker Desktop includes Compose on Windows and macOS and documents installation as a CLI plugin under Docker's cli-plugins directory on Linux. The batch input shows especially broad package-manager coverage, including Homebrew, Chocolatey, Debian, Fedora-style distributions, MacPorts, Nix, Arch, Scoop, Ubuntu, winget, and zypper.

### 使用方式

The normal workflow is to define services in compose.yaml or docker-compose.yml, then use docker compose up to create and start the application. Docker docs call out lifecycle commands for starting, stopping, rebuilding, viewing status, streaming logs, and running one-off commands, making Compose common in local development, test environments, staging, simple production deployments, and CI workflows.

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

Docker Compose is package-nerd significant because it made multi-container Docker applications portable before Kubernetes became the default mental model for orchestration. It also marks a major packaging transition: the old standalone docker-compose command and Python implementation gave way to a Docker CLI plugin, while package managers kept shipping a familiar formula name.

### 时间线

- 2010s: Compose popularizes application stacks described in docker-compose.yml files.
- 2020: The Compose Specification becomes the shared Compose file format used by the modern project.
- 2020s: The Go-based Compose V2 becomes the main Docker Compose implementation, with the Python version kept on the v1 branch.
- 2026: Docker docs present Compose as the standard tool for defining and running multi-container applications, and the batch input lists broad package-manager distribution.

### Related projects

- Docker Compose is closely related to Docker Engine, Docker Desktop, the Compose Specification, Docker Buildx for Compose builds, Swarm's older Compose-file usage, and editor tools such as Microsoft's Compose Language Service.

### 来源

- <https://docs.docker.com/compose/>
- <https://github.com/docker/compose#readme>
- <https://compose-spec.io/>
- <https://formulae.brew.sh/formula/docker-compose>


## 安全说明

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



## 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: ./compose.yaml, ./compose.yml, ./docker-compose.yaml, ./docker-compose.yml, ./.env
## 其他软件包管理器记录

- Debian apt - docker-compose - 2.26.1-4: normalized package name match | Debian stable package indexes: docker-compose from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Define and run multi-container applications with Docker (program) | https://github.com/docker/compose
- Nix - docker-compose: normalized package name match | nixpkgs package indexes: docker-compose from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - docker-compose - 1.29.2-6ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: docker-compose from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | define and run multi-container Docker applications with YAML | https://docs.docker.com/compose/
- Ubuntu apt - python3-compose - 1.29.2-6ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-compose from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python implementation of docker-compose file specification | https://docs.docker.com/compose/
- dnf - docker-compose - 5.3.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: docker-compose from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Define and run multi-container applications with Docker | https://github.com/docker/compose
- pacman - docker-compose - 5.4.0-1: normalized package name match | Arch Linux sync databases: docker-compose from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fast, isolated development environments using Docker | https://www.docker.com/
- zypper - docker-compose - 5.3.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: docker-compose from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Define and run multi-container applications with Docker | https://github.com/docker/compose
- MacPorts - docker-compose: normalized package name match | MacPorts ports tree: python/docker-compose/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - docker-compose: normalized package name match | Chocolatey community package catalog: docker-compose from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','dispcalgui.install'
- Scoop - main/docker-compose: normalized package name match | Scoop official bucket manifest trees: bucket/docker-compose.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Docker.DockerCompose: normalized package name match | Windows Package Manager source index: Docker.DockerCompose from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/docker-compose.yml](https://github.com/mxcl/pkgdb/blob/main/combined/docker-compose.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
