Docker Compose v2.31.0stable Released Nov 28, 2024
Impact Score: 6/10

Docker Compose v2.31.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-26.

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

Docker Compose v2.31.0 introduces build delegation to buildx bake along with a new commit command and multiple critical bug fixes for scaling, networking, and container lifecycle management. These updates improve build performance, deployment accuracy, and overall reliability.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

You can now leverage the new commit command and benefit from delegated builds using buildx bake.

📊 Product & Engineering Leads

Feature velocity remains high with improved container orchestration stability and scaling behavior.

⚙️ DevOps & Security

Upgrading ensures better handling of network configuration changes, accurate cleanup during scale-downs, and robust artifact generation.

✨ New Features & Capabilities (1)

  • Add commit command

⚡ Performance & Enhancements (1)

  • Delegate build to buildx bake

🔧 Bug Fixes & Patches (11)

  • Print service names with --no-interpolate
  • Remove obsolete containers first on scale down
  • Fix compose images that return a different image with the same ID
  • Emit events for building images
  • Fix support for --remove-orphans on docker compose run
  • Push empty descriptor layer when using OCI version 1.1 for Compose artifact
  • Detect network config changes and recreate if needed
  • Update wait-timeout flag usage to include the unit
  • Use service.stop to stop dependent containers
  • Only check attached networks on running containers
  • Only stop dependent containers when they exist

❓ Frequently Asked Questions

Does Docker Compose v2.31.0 contain breaking changes?

No breaking changes are explicitly documented in this release.

What is the primary highlight of v2.31.0?

The primary highlights include delegating builds to buildx bake, adding the new commit command, and several critical fixes for scaling and network configuration updates.

How should teams prepare to upgrade to v2.31.0?

Teams can upgrade routinely, keeping an eye on build and network behavior given the transition to buildx bake delegation and automatic network config change detection.

📄 View Raw Release Notes (Original Developer Log)
## What's Changed ### ✨ Improvements * Delegate build to buildx bake by @ndeloof [(12300)](https://github.com/docker/compose/pull/12300) * Add commit command by @jarqvi [(12268)](https://github.com/docker/compose/pull/12268) ### 🐛 Fixes * Fix(config): Print service names with --no-interpolate by @idsulik [(12282)](https://github.com/docker/compose/pull/12282) * Remove obsolete containers first on scale down by @ndeloof [(12272)](https://github.com/docker/compose/pull/12272) * Fix compose images that return a different image with the same ID by @koooge [(12278)](https://github.com/docker/compose/pull/12278) * Emit events for building images by @felixfontein [(11498)](https://github.com/docker/compose/pull/11498) * Fix support for --remove-orphans on `docker compose run` by @ndeloof [(12288)](https://github.com/docker/compose/pull/12288) * Push empty descriptor layer when using OCI version 1.1 for Compose artifact by @glours [(12289)](https://github.com/docker/compose/pull/12289) * Detect network config changes and recreate if needed by @ndeloof [(12267)](https://github.com/docker/compose/pull/12267) * Update wait-timeout flag usage to include the unit by @terev [(12316)](https://github.com/docker/compose/pull/12316) * Use service.stop to stop dependent containers by @ndeloof [(12322)](https://github.com/docker/compose/pull/12322) * Only check attached networks on running containers by @ndeloof [(12327)](https://github.com/docker/compose/pull/12327) * Only stop dependent containers ... if there's some by @ndeloof [(12328)](https://github.com/docker/compose/pull/12328) ### 🔧 Internal * Pass stale bot inactivity limit from 6 to 3 months by @glours [(12284)](https://github.com/docker/compose/pull/12284) * Ci: enable testifylint linter by @mmorel-35 [(11761)](https://github.com/docker/compose/pull/11761) * Remove ddev e2e tests by @glours [(12291)](https://github.com/docker/compose/pull/12291) * Gha: test against docker engine v27.4.0 by @thaJeztah [(12299)](https://github.com/docker/compose/pull/12299) * Run build tests against bake by @ndeloof [(12325)](https://github.com/docker/compose/pull/12325) ### ⚙️ Dependencies * Build(deps): bump golang.org/x/sync from `0.8.0` to `0.9.0` by @dependabot [(12277)](https://github.com/docker/compose/pull/12277) * Build(deps): bump golang.org/x/sys from `0.26.0` to `0.27.0` by @dependabot [(12276)](https://github.com/docker/compose/pull/12276) * Build(deps): bump github.com/moby/buildkit `v0.17.1`, github.com/docker/buildx `v0.18.0` by @thaJeztah [(12298)](https://github.com/docker/compose/pull/12298) * Build(deps): bump docker/docker `v27.4.0-rc.2`, docker/cli `v27.4.0-rc.2` by @thaJeztah [(12306)](https://github.com/docker/compose/pull/12306) * Build(deps): bump github.com/stretchr/testify from `1.9.0` to `1.10.0` by @dependabot [(12319)](https://github.com/docker/compose/pull/12319) * Build(deps): bump github.com/compose-spec/compose-go/v2 from `2.4.5-0.20241111154218-9d02caaf8465` to `2.4.5` by @dependabot [(12324)](https://github.com/docker/compose/pull/12324) * Build(deps): bump github.com/moby/buildkit from `0.17.1` to `0.17.2` by @dependabot [(12320)](https://github.com/docker/compose/pull/12320) * Bump google.golang.org/grpc to v1.68.0 and containerd to `v1.7.24` by @glours [(12329)](https://github.com/docker/compose/pull/12329) ## New Contributors * @terev made their first contribution in https://github.com/docker/compose/pull/12316 **Full Changelog**: https://github.com/docker/compose/compare/v2.30.3...v2.31.0