Docker Compose v2.24.0stable Released Jan 11, 2024
⚠️ Breaking Change Impact Score: 9/10

Docker Compose v2.24.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-29.

Breaking-change evidence from the source

  • Breaking change :warning: * service hash computation logic has been updated to fully ignore replicas/scale. Due to this change, after upgrade all services will be recreated.
Read the original context ↗
Source flags breaking changes - review applicability
📄 .MD
⚡ Executive Summary (TL;DR)

Docker Compose v2.24.0 introduces a breaking change to service hash computation that forces all services to be recreated upon upgrade. Additionally, it adds powerful new operational enhancements like transitive dependency builds and log indexing for replicas.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

You can now use 'docker compose attach', build dependencies transitively with '--with-dependencies', and target specific replica logs using '--index'.

📊 Product & Engineering Leads

Feature velocity is strong with new container stats capabilities and deeper orchestration controls that improve the local and remote development experience.

⚙️ DevOps & Security

Be aware that upgrading to this version will automatically trigger a recreation of all running services due to updated replica hash calculation logic.

⚠️ Breaking Changes & Deprecations (1)

  • Breaking change :warning: * service hash computation logic has been updated to fully ignore replicas/scale. Due to this change, after upgrade all services will be recreated.

✨ New Features & Capabilities (7)

  • Implement docker compose attach
  • Introduce ps --orphans to include/exclude services not declared by project
  • Introduce compose logs --index to select a replica container
  • Introduce stats command
  • Add source policies for build
  • Add support for start_interval
  • Add support for endpoint-specific MAC address

⚡ Performance & Enhancements (3)

  • --with-dependencies let docker compose build build dependencies transitively
  • Adopt compose-go/v2
  • Watch: remove requirements for tar binary and for sync target to be rw

🔧 Bug Fixes & Patches (10)

  • Include disabled services for shell completion
  • Restore Project in ps json output
  • Log we don't expose service ports when --verbose
  • Fix configs are mounted under /<id>
  • Fix combination of --pull always --no-build
  • Fix(publish): add OCI 1.0 fallback support for AWS ECR
  • Fix race condition in log printer
  • Send out a cancel event on SIGINT/SIGTERM signal for compose up
  • Up: teardown when command context is cancelled
  • Build do not require environment to be resolved

❓ Frequently Asked Questions

Does Docker Compose v2.24.0 contain breaking changes?

Yes. The service hash computation logic has been updated to fully ignore replicas and scale, which means all services will be recreated after upgrading.

What is the primary highlight of v2.24.0?

Key highlights include the new 'docker compose attach' command, transitive dependency building with '--with-dependencies', replica log selection via '--index', and a new resource 'stats' command.

How should teams prepare to upgrade to v2.24.0?

Teams should prepare for a brief downtime or service interruption during deployment, as upgrading to v2.24.0 automatically triggers the recreation of all active containers due to the updated service hashing logic.

📄 View Raw Release Notes (Original Developer Log)
## What's Changed ### Breaking change :warning: * service hash computation logic has been updated to fully ignore replicas/scale. Due to this change, after upgrade all services will be recreated. ### ✨ Enhancements * Implement `docker compose attach` by @g0t4 in https://github.com/docker/compose/pull/11181 * Introduce ps --orphans to include/exclude services not declared by project by @ndeloof in https://github.com/docker/compose/pull/11220 * Introduce compose logs --index to select a replica container by @ndeloof in https://github.com/docker/compose/pull/11231 * `--with-dependencies` let `docker compose build` build dependencies transitively by @ndeloof in https://github.com/docker/compose/pull/11290 * Introduce `stats` command by @ndeloof in https://github.com/docker/compose/pull/11299 * Add source policies for build by @cpuguy83 in https://github.com/docker/compose/pull/11325 ### 🐛 Fixes * Include disabled services for shell completion by @ndeloof in https://github.com/docker/compose/pull/11251 * Restore `Project` is ps json output by @ndeloof in https://github.com/docker/compose/pull/11223 * Log we don't expose service ports when --verbose by @ndeloof in https://github.com/docker/compose/pull/11227 * Fix configs are mounted under /<id> by @ndeloof in https://github.com/docker/compose/pull/11232 * Fix combination of --pull always --no-build by @ndeloof in https://github.com/docker/compose/pull/11244 * Fix(publish): add OCI 1.0 fallback support for AWS ECR by @milas in https://github.com/docker/compose/pull/11239 * Fix race condition in log printer by @horus in https://github.com/docker/compose/pull/11286 * Send out a cancel event on SIGINT/SIGTERM signal for `compose up` by @vyneer in https://github.com/docker/compose/pull/11230 * Up: teardown when command context is cancelled by @laurazard in https://github.com/docker/compose/pull/11292 * Build do not require environment to be resolved by @ndeloof in https://github.com/docker/compose/pull/11274 ### 🔧 Internal * Let contributor know we might close unanswered issues by @ndeloof in https://github.com/docker/compose/pull/11219 * Feat(cli): report more useful User-Agent on engine API requests by @milas in https://github.com/docker/compose/pull/11333 * Adopt compose-go/v2 by @ndeloof in https://github.com/docker/compose/pull/11207 * Add support for start_interval by @ndeloof in https://github.com/docker/compose/pull/10939 * Update README.md to use standard `compose.yaml` file name by @johnthagen in https://github.com/docker/compose/pull/11233 * Watch: remove requirements for tar binary and for sync target to be rw by @ndeloof in https://github.com/docker/compose/pull/11330 * Deps: update docker/cli to fix go version selection issue by @laurazard in https://github.com/docker/compose/pull/11283 * Remove ServiceProxy which was introduced for archived compose-cli by @ndeloof in https://github.com/docker/compose/pull/11298 * github.com/golang/mock is deprecated by @ndeloof in https://github.com/docker/compose/pull/11272 * Add support for endpoint-specific MAC address by @akerouanton in https://github.com/docker/compose/pull/11208 * Collect services to build using WithServices by @ndeloof in https://github.com/docker/compose/pull/11255 ### ⚙️ Dependencies * Bump compose-go to version v2.0.0-beta.3 by @glours in https://github.com/docker/compose/pull/11307 * Bump ddev to 1.22.4 by @ndeloof in https://github.com/docker/compose/pull/11225 * Bump golang to version 1.21.5 by @glours in https://github.com/docker/compose/pull/11249 * Bump docker cli v1.25 beta1 by @ndeloof in https://github.com/docker/compose/pull/11247 * Bump golang to version v1.21.6 by @glours in https://github.com/docker/compose/pull/11331 * Bump golangci-lint to v1.55.2 ci(deps) by @milas in https://github.com/docker/compose/pull/11332 * Bump compose-go v2-beta.2 by @ndeloof in https://github.com/docker/compose/pull/11295 * Build(deps): bump golang.org/x/sys from 0.15.0 to 0.16.0 by @dependabot in https://github.com/docker/compose/pull/11324 * Build(deps): bump golang.org/x/sys from 0.14.0 to 0.15.0 by @dependabot in https://github.com/docker/compose/pull/11228 * Build(deps): bump golang.org/x/sync from 0.5.0 to 0.6.0 by @dependabot in https://github.com/docker/compose/pull/11317 * Build(deps): bump go.uber.org/mock from 0.3.0 to 0.4.0 by @dependabot in https://github.com/docker/compose/pull/11291 * go.mod: docker/docker and docker/cli v25.0.0-beta.3 by @thaJeztah in https://github.com/docker/compose/pull/11294 * go.mod: update docker/docker and docker/cli to v25.0.0-rc.1 by @thaJeztah in https://github.com/docker/compose/pull/11320 * gha: update DOCKER_CLI_VERSION to v24.0.7 by @thaJeztah in https://github.com/docker/compose/pull/11321 ## New Contributors * @johnthagen made their first contribution in https://github.com/docker/compose/pull/11233 * @vyneer made their first contribution in https://github.com/docker/compose/pull/11230 * @horus made their first contribution in https://github.com/docker/compose/pull/11286 * @cpuguy83 made their first contribution in https://github.com/docker/compose/pull/11325 **Full Changelog**: https://github.com/docker/compose/compare/v2.23.3...v2.24.0