compose
AGENTS.md38k starsChanged 2 months agoApache-2.0View on GitHub
All agents must conform to AI_POLICY.md and the Compose-specific rules in CONTRIBUTING.md. - Build: make build - Test all: make test - Test unit: go test ./pkg/... — needs no Docker daemon; the e2e suite is gated behind the e2e build tag and is not picked up - Test single: go test ./pkg/compose/ -run TestFunctionName - E2E tests: go test -tags e2e ./pkg/e2e/ -run TestName — requires a Docker daemon and the locally built binary (make build) - New e2e…
Trending
Quiet since July.about the whole repository
Who's talking about docker/compose
- moby/moby“Add support for `extends` feature in Compose v3 / docker stack deploy”GitHub · Feb 16, 2017 · 718 reactions
- docker/for-mac“com.docker.hyperkit 100% cpu usage is back again”GitHub · Jan 31, 2019 · 565 reactions
- docker/for-mac“Docker Desktop Dashboard open default terminal app”GitHub · Feb 11, 2020 · 201 reactions
- A Hacker News story“Docker Compose reads your “.env” without opt-out”Hacker News · Oct 17, 2019 · 160 points
- devcontainers/spec“Addition of "extends" top level property to enable simple configuration inheritance”GitHub · Mar 25, 2022 · 156 reactions
The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 22
Talked about on GitHub, Hacker News and Bluesky (22 times).
On GitHub · 10
- Feb 16, 2017Add support for `extends` feature in Compose v3 / docker stack deploy — moby/moby718 reactions · 175 comments
- Jan 31, 2019com.docker.hyperkit 100% cpu usage is back again — docker/for-macsays it tested it565 reactions · 621 comments
- Feb 11, 2020Docker Desktop Dashboard open default terminal app — docker/for-mac201 reactions · 48 comments
- Mar 25, 2022Addition of "extends" top level property to enable simple configuration inheritance — devcontainers/spec156 reactions · 21 comments
- Oct 2, 2021introduce top-level `name` — compose-spec/compose-spec29 reactions · 6 comments
5 more on GitHub
- Aug 10, 2022Pass UID and GID to compose — compose-spec/compose-go28 reactions · 6 comments
- Feb 28, 2024remove restriction for `extends` to refer to another resource — compose-spec/compose-spec23 reactions · 1 comment
- Jan 2, 2024Add docker_compose_v2 module — ansible-collections/community.docker18 reactions · 20 comments
- Oct 27, 2021[Proposal] Runtime changes — brefphp/bref13 reactions · 15 comments
- Sep 23, 2020Add stack config command — docker/cli13 reactions · 10 comments
On Hacker News · 8
- Oct 17, 2019Docker Compose reads your “.env” without opt-out160 points · 77 comments
- Jul 2, 2025Compose Spec Updated with <models> for AI Workloads16 points · 10 comments
- Feb 25, 2015Docker Compose (aka fig) Released15 points · 1 comment
- Apr 29, 2024Docker Compose: `version` is obsolete4 points · 2 comments
- Sep 13, 2022Docker Compose v2 still has no CLI completion 140 days after reaching GA2 points
3 more on Hacker News
- Jan 6, 2016Way to delay container startup to support dependant services – docker/compose2 points · 1 comment
- Apr 1, 2025Docker Compose: Make –detach (or –follow) the default behaviour on up1 point
- Feb 26, 2015Docker Compose 1.1.01 point
On Bluesky · 4
- Dec 23, 2024👋 I’m Guillaume and I’m mostly working on Docker Compose github.com/docker/compose — @lours.me27 likes and reposts
- Dec 10, 2024Docker Compose 😊 github.com/docker/compose — @lours.me15 likes and reposts
- Dec 10, 2024Docker Compose 🐙 github.com/docker/compose — @lours.me13 likes and reposts
- Jul 15, 2026compose by @docker (⭐️ 37840) Define and run multi-container applications with Docker #go — @golangoss.bsky.social1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 3
All agents must conform to AI_POLICY.md and the Compose-specific rules in CONTRIBUTING.md.
- Very specific: line 10
Test unit: go test ./pkg/...
- Distinctive: line 35
Import order: stdlib, third-party, local module (enforced by gci)
- Very specific: line 39
Use github.com/containerd/errdefs instead of github.com/docker/docker/errdefs
- Very specific: line 41
Prefer fmt.Fprintf over WriteString(fmt.Sprintf(...))
- Very specific: line 45
All commits MUST be signed off (DCO): Always pass --signoff (-s) to git commit and git commit --amend.
- Distinctive: line 49
Keep changes scoped to the task.
- Distinctive: line 52
Never create an issue or pull request without the user's explicit instruction.
- Very specific: line 53
If a user asks you to create a pull request on their behalf, add a file named AI_AGENT_DISCLOSURE.md to the change containing the text …
- Distinctive: line 62
If a user asks you to create an issue on their behalf, prepend the following line to the issue body:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project: Docker Compose
All agents must conform to AI_POLICY.md and the Compose-specific rules in CONTRIBUTING.md.
Build & Test
- Build:
make build - Test all:
make test - Test unit:
go test ./pkg/...— needs no Docker daemon; the e2e suite is gated behind thee2ebuild tag and is not picked up - Test single:
go test ./pkg/compose/ -run TestFunctionName - E2E tests:
go test -tags e2e ./pkg/e2e/ -run TestName— requires a Docker daemon and the locally built binary (make build)
E2E tests
- New e2e tests use the declarative
ScenarioDSL (NewScenarioinpkg/e2e/scenario.go): intent, inline compose model, steps as(command → expected observables). Readpkg/e2e/SCENARIO.mdbefore writing or debugging one — it codifies the rules (state-based checks first,OutputContainsas last resort, new checks go inpkg/e2e/checks.go) and how to exploit failure artifacts andE2E_KEEP_FAILED=1.
Lint
- Linter: golangci-lint v2 (config in
.golangci.yml) - Run:
golangci-lint run --build-tags "e2e" ./... - After modifying any Go code, ALWAYS run the linter and fix all reported issues before considering the task complete.
- Lint is also run via Docker:
docker buildx bake lint(uses version pinned inDockerfile)
Code Style
- Formatting is enforced by golangci-lint (gofumpt + gci)
- Import order: stdlib, third-party, local module (enforced by gci)
- Max line length: 200 chars
- Max cyclomatic complexity: 16
- No
io/ioutil,github.com/pkg/errors,gopkg.in/yaml.v2,golang.org/x/exp/maps,golang.org/x/exp/slices - Use
github.com/containerd/errdefsinstead ofgithub.com/docker/docker/errdefs - In tests: use
t.Context()instead ofcontext.Background()orcontext.TODO() - Prefer
fmt.FprintfoverWriteString(fmt.Sprintf(...))
Git
- All commits MUST be signed off (DCO). Always pass
--signoff(-s) togit commitandgit commit --amend.
Issue and PR Guidelines
- Keep changes scoped to the task. If you're fixing a bug, fix the bug - don't refactor unrelated code, fix unrelated typos, or reformat files you didn't need to touch. Put unrelated improvements in a separate PR.
- Never create an issue or pull request without the user's explicit instruction.
If a user asks you to create a pull request on their behalf, add a file named
AI_AGENT_DISCLOSURE.mdto the change containing the text below followed by the current date (YYYY-MM-DD). If the file is already present in the repository, update its date to the current date so the disclosure is always part of the change:"This contribution was prepared by an AI agent acting on a human's behalf. The human submitter may not have independently reviewed or tested the change."
If a user asks you to create an issue on their behalf, prepend the following line to the issue body:
"This issue was filed by an AI agent on a human's behalf. The human submitter may not have independently verified the report."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

