Docker Compose v2.40.0stable Released Oct 03, 2025
Impact Score: 6/10

Docker Compose v2.40.0 - 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-21.

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

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.

Who Does This Impact? (Role-Based Analysis)

💻 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.

📄 View Raw Release Notes (Original Developer Log)
## What's Changed ### ✨ Improvements * publish Compose application as compose.yaml + images by @ndeloof in https://github.com/docker/compose/pull/13257 ### 🐛 Fixes * resolve secrets based on env var before executing bake by @ndeloof in https://github.com/docker/compose/pull/13237 * pass bake secrets by env by @ndeloof in https://github.com/docker/compose/pull/13249 * escape $ in bake.json as interpolation already has been managed by cpmpose by @ndeloof in https://github.com/docker/compose/pull/13259 ### 🔧 Internal * pkg/compose: remove uses of deprecated mitchellh/mapstructure module by @thaJeztah in https://github.com/docker/compose/pull/13239 * pkg/watch: remove unused IsWindowsShortReadError by @thaJeztah in https://github.com/docker/compose/pull/13052 * pkg/compose: build: remove permissions warning on Windows by @thaJeztah in https://github.com/docker/compose/pull/13236 * pluginMain: remove uses of DockerCLI.Apply by @thaJeztah in https://github.com/docker/compose/pull/13240 * use containerd registry client by @ndeloof in https://github.com/docker/compose/pull/13245 * provider services: use '--project-name=' notation by @glours in https://github.com/docker/compose/pull/13250 * gha: update test-matrix: remove docker 26.x by @thaJeztah in https://github.com/docker/compose/pull/13254 * pkg/compose: explicitly map AuthConfig fields instead of a direct cast by @thaJeztah in https://github.com/docker/compose/pull/13253 * cmd/compose: fix minor linting issues by @thaJeztah in https://github.com/docker/compose/pull/13252 * use containerd client for OCI operations by @ndeloof in https://github.com/docker/compose/pull/13251 ### ⚙️ Dependencies * build(deps): bump github.com/docker/docker, docker/cli v28.5.0-rc.1 by @thaJeztah in https://github.com/docker/compose/pull/13241 * build(deps): bump github.com/docker/docker from 28.5.0-rc.1+incompatible to 28.5.0+incompatible by @dependabot[bot] in https://github.com/docker/compose/pull/13260 * build(deps): bump github.com/docker/cli from 28.5.0-rc.1+incompatible to 28.5.0+incompatible by @dependabot[bot] in https://github.com/docker/compose/pull/13261 **Full Changelog**: https://github.com/docker/compose/compare/v2.39.4...v2.40.0