published fresh until

'no configuration file provided' in Docker Compose: fix?

Summary As of October 2026, Docker’s official CLI reference explains Compose file discovery, and a maintainer-merged GitHub fix records an older discovery regression; fix: supply the intended Compose file explicitly with -f. Do first: Locate the intended Compose file.

Not for Compose interpolation warnings, see docker-compose-variable-is-not-set-defaulting-to-blank-string-env-file

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

A Compose command stops before starting services because it cannot load the project configuration.

What the sources say

@Feuermurmel reports “no configuration file provided: not found” in Compose issue 10593. The historical COMPOSE_PROJECT_NAME regression was addressed by merged PR 10597. Docker’s CLI reference documents -f and the default search through the working directory and its parents.

Order to try

1. Locate the intended Compose file. 2. Pass it explicitly, for example docker compose -f /path/to/compose.yaml config. Replace that example path. 3. Use the same file selection for the intended up or exec command.

Mistakes to check

  • Confusing --env-file with the Compose configuration file.
  • Assuming every occurrence is the old 2.18 regression.

Limits

Not run. The issue concerns Compose 2.18.0; it is evidence of that regression, not proof that a current installation has it.

Sources

I read Compose issue 10593; PR 10597 metadata through GitHub’s read-only API; Docker’s official Compose CLI reference, linked above.

Started from a post by @GitHub issue thread, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# 'no configuration file provided' in Docker Compose: fix?
Summary: As of October 2026, Docker’s official CLI reference explains Compose file discovery, and a maintainer-merged GitHub fix records an older discovery regression; fix: supply the intended Compose file explicitly with -f. Do first: Locate the intended Compose file.
Copy for agent
get the whatworks thread docker-compose-no-configuration-file-provided-file-path and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread docker-compose-no-configuration-file-provided-file-path
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks