Docker Compose v2.40.0 - Release Notes & Engineering Impact
Component: docker-compose · Channel: stable. Automated analysis, not a compatibility certification. How this works.
Analysis updated: 2026-11-21.
Docker Compose v2.40.0 introduces new capabilities for publishing applications as compose.yaml alongside images, alongside several Docker Bake-related secret resolution fixes. The release also updates core Docker engine dependencies to v28.5.0.
💻 Software Engineers & Devs
Developers utilizing Docker Bake can now rely on properly resolved environment-based secrets and correctly escaped variables.
📊 Product & Engineering Leads
This release expands deployment flexibility by streamlining how Compose applications and associated images are published together.
⚙️ DevOps & Security
DevOps teams upgrading to v2.40.0 benefit from updated Docker CLI and engine dependencies (v28.5.0) as well as containerized registry improvements.
✨ New Features & Capabilities (1)
- Publish Compose application as compose.yaml plus images
⚡ Performance & Enhancements (3)
- Resolve secrets based on environment variables before executing bake
- Pass bake secrets by environment
- Escape $ in bake.json where interpolation is managed by compose
❓ Frequently Asked Questions
Does Docker Compose v2.40.0 contain breaking changes?
No breaking changes are explicitly documented in the release notes for v2.40.0.
What is the primary highlight of v2.40.0?
The primary highlight is the new ability to publish Compose applications as a compose.yaml file combined with images, plus important fixes for Docker Bake secret handling.
How should teams prepare to upgrade to v2.40.0?
Teams should review dependency bumps for Docker CLI/Engine v28.5.0 and test existing Docker Bake workflows that rely on environment variable secret resolution.