Docker Compose v2.40.1 - Release Notes & Engineering Impact
Component: docker-compose · Channel: stable. Automated analysis, not a compatibility certification. How this works.
Analysis updated: 2026-11-22.
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.
💻 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.