Docker Compose v2.40.1stable Released Oct 17, 2025
Impact Score: 3/10

Docker Compose v2.40.1 - Release Notes & Engineering Impact

Source available - automated, not human-reviewed

Component: docker-compose · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-22.

Compatibility not verified - check source notes
📄 .MD
⚡ Executive Summary (TL;DR)

Docker Compose v2.40.1 introduces important bug fixes for file watchers, environment variables, and bake interpolation, alongside dependency updates. It also adds support for running compose in the background via Ctrl+Z on non-Windows platforms.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

You can now use Ctrl+Z to run compose in the background and benefit from fixes for secret/config permissions matching the container USER.

📊 Product & Engineering Leads

This release provides routine stability and polish, ensuring better reliability across compose file publishing and profiles.

⚙️ DevOps & Security

Ensure you test the updated Docker engine and buildx dependencies included in this patch release during routine infrastructure updates.

✨ New Features & Capabilities (1)

  • Support Ctrl+Z to run compose in the background (no-op on Windows)

⚡ Performance & Enhancements (2)

  • Set secret and config uid:gid to match container's USER
  • Bake only interpolates ${*}

🔧 Bug Fixes & Patches (5)

  • Write error to watcher error channel if Start() fails
  • Fix: set PWD only if not set
  • Fix: make 'publish' push all compose files addressed in 'extends' statements when using 'profiles'
  • Fix race-condition bug in publish command
  • Fix failure to delegate build with bake

❓ Frequently Asked Questions

Does Docker Compose v2.40.1 contain breaking changes?

No, the release notes do not document any breaking changes or required migrations.

What is the primary highlight of v2.40.1?

The primary highlights include bug fixes for the publish and bake commands, proper UID/GID mapping for secrets and configs, and background execution support via Ctrl+Z.

How should teams prepare to upgrade to v2.40.1?

Teams can upgrade routinely as part of their standard patch management workflow, noting the updated underlying Docker and buildx dependencies.

📄 View Raw Release Notes (Original Developer Log)
## What's Changed ### 🐛 Fixes * Write error to watcher error channel if Start() fails by @Trolldemorted in https://github.com/docker/compose/pull/13263 * Fix: set PWD only if not set by @kianelbo in https://github.com/docker/compose/pull/13268 * bake only interpolates ${*} by @ndeloof in https://github.com/docker/compose/pull/13270 * Fix: make "publish" push all compose files addressed in "extends" statements when using "profiles". by @ogoulpeau-ledger in https://github.com/docker/compose/pull/13277 * Support Ctrl+Z to run compose in background by @ndeloof in https://github.com/docker/compose/pull/13289 * Fix race-condition bug in publish command by @paul-kinexon in https://github.com/docker/compose/pull/13291 * Set secret/config uid:gid to match container's USER by @ndeloof in https://github.com/docker/compose/pull/13288 * Fix failure to delegate build with bake by @ndeloof in https://github.com/docker/compose/pull/13275 * Make CTRL+Z a no-op operation on Windows by @glours in https://github.com/docker/compose/pull/13293 ### 🔧 Internal * pkg/compose: align classic builder implementation with docker/cli by @thaJeztah in https://github.com/docker/compose/pull/13278 * pkg/compose: build with bake: drop support for buildx v0.16 and lower by @thaJeztah in https://github.com/docker/compose/pull/13280 * Use fixed version of compose bridge transformer images by @glours in https://github.com/docker/compose/pull/13284 ### ⚙️ Dependencies * Build(deps): bump github.com/docker/docker from 28.5.0+incompatible to 28.5.1+incompatible by @dependabot[bot] in https://github.com/docker/compose/pull/13274 * Build(deps): bump github.com/docker/cli from 28.5.0+incompatible to 28.5.1+incompatible by @dependabot[bot] in https://github.com/docker/compose/pull/13273 * Build(deps): bump golang.org/x/sys from 0.36.0 to 0.37.0 by @dependabot[bot] in https://github.com/docker/compose/pull/13272 * Build(deps): bump docker/buildx v0.29.1, moby/buildkit v0.25.1 by @thaJeztah in https://github.com/docker/compose/pull/13279 * Bump golang to version 1.24.9 by @glours in https://github.com/docker/compose/pull/13285 ## New Contributors * @Trolldemorted made their first contribution in https://github.com/docker/compose/pull/13263 * @ogoulpeau-ledger made their first contribution in https://github.com/docker/compose/pull/13277 * @paul-kinexon made their first contribution in https://github.com/docker/compose/pull/13291 **Full Changelog**: https://github.com/docker/compose/compare/v2.40.0...v2.40.1