Docker Compose v2.34.0stable Released Mar 14, 2025
Impact Score: 6/10

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

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

Docker Compose v2.34.0 introduces new capabilities such as file filtering in watch, environment file specification for run commands, and native publish support alongside artifact security scanning. The release also includes updates to target Go 1.23/1.24 and various bug fixes and dependency bumps.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

You can now leverage new flags like `--env-from-file` for `docker compose run` and filter files watched with the `include` option.

📊 Product & Engineering Leads

Feature velocity increases with better OCI publishing tools and built-in secret leak detection prior to publishing artifacts.

⚙️ DevOps & Security

Ensure your build and execution environments support Go 1.23 or 1.24, and note the deprecation of the short `-y` flag in favor of `--yes`.

✨ New Features & Capabilities (4)

  • Support refresh pull policy
  • Introduced include to filter files considered by watch
  • Introduced --env-from-file in docker compose run command
  • Make publish a regular command of Compose

⚡ Performance & Enhancements (2)

  • Use Defang secret-detector to identify potential secret leaks before publishing OCI artifacts
  • Only load env_file after services have been selected

🔧 Bug Fixes & Patches (2)

  • Fixed service: reference in additional_contexts for builds without bake
  • Refuse to compose file with local include and bind mounts during publish

❓ Frequently Asked Questions

Does Docker Compose v2.34.0 contain breaking changes?

No breaking changes are explicitly documented in this release, though `--y` has been deprecated in favor of `--yes`.

What is the primary highlight of v2.34.0?

The primary highlight is the inclusion of `publish` as a regular command, along with new features like `--env-from-file` and OCI artifact secret scanning.

How should teams prepare to upgrade to v2.34.0?

Teams should verify their environments comply with the Go 1.23 or 1.24 runtime requirements and plan to update any automated scripts using the deprecated `-y` flag to use `--yes` instead.

📄 View Raw Release Notes (Original Developer Log)
## What's Changed ### ✨ Improvements * Support refresh pull policy by @ndeloof in https://github.com/docker/compose/pull/12568 * Introduced `include` to filter files considered by `watch` by @ndeloof in https://github.com/docker/compose/pull/12584 * Introduced `--env-from-file` in `docker compose run` command by @ndeloof in https://github.com/docker/compose/pull/12626 * Make `publish` a regular command of Compose by @glours in https://github.com/docker/compose/pull/12629 ### 🐛 Fixes * Build: only print COMPOSE_BAKE recommendation when disabled by @emersion in https://github.com/docker/compose/pull/12572 * Improve message suggesting using bake by @glours in https://github.com/docker/compose/pull/12612 * Fixed service: reference in additional_contexts for builds without bake by @ndeloof in https://github.com/docker/compose/pull/12582 * Block the publication of an OCI artifact if one or more services contain only a build section by @glours in https://github.com/docker/compose/pull/12597 * Display the location of OCI or GIT Compose stack download by @glours in https://github.com/docker/compose/pull/12595 * Refuse to publish compose file with local include by @ndeloof in https://github.com/docker/compose/pull/12600 * `publish`reject compose file with bind mounts by @ndeloof in https://github.com/docker/compose/pull/12601 * Display interpolation variables and their values when running a remote stack by @glours in https://github.com/docker/compose/pull/12604 * Publish compose file with required siblings used by `extends` by @ndeloof in https://github.com/docker/compose/pull/12606 * Add warning message when a remote configuration include an another remote config by @glours in https://github.com/docker/compose/pull/12610 * Only load env_file after services have been selected by @ndeloof in https://github.com/docker/compose/pull/12611 * Deprecate --y, prefer --yes by @ndeloof in https://github.com/docker/compose/pull/12623 * Use Defang secret-detector to identify potential secret leaks before publishing OCI artifacts by @glours in https://github.com/docker/compose/pull/12620 ### 🔧 Internal * Link to configuration file docs by @andrew-kramer in https://github.com/docker/compose/pull/12559 * Otel attribute to track builder implementation selected by @ndeloof in https://github.com/docker/compose/pull/12586 * Test version command by @maxproske in https://github.com/docker/compose/pull/12576 * Implement extends.file replace without yqlib by @ndeloof in https://github.com/docker/compose/pull/12615 * Add `cli.isatty` attribute to spans generated by compose by @landism in https://github.com/docker/compose/pull/12630 * Condense output of `compose top` by @dmke in https://github.com/docker/compose/pull/12628 ### ⚙️ Dependencies * Require go `1.23`|`1.24` (stable) by @ndeloof in https://github.com/docker/compose/pull/12571 * Build(deps): bump tags.cncf.io/container-device-interface from 0.8.0 to 0.8.1 by @dependabot in https://github.com/docker/compose/pull/12583 * Build(deps): bump github.com/google/go-cmp from `0.6.0` to `0.7.0` by @dependabot in https://github.com/docker/compose/pull/12578 * Build(deps): bump github.com/docker/cli from `28.0.0+incompatible` to `28.0.1+incompatible` by @dependabot in https://github.com/docker/compose/pull/12590 * Build(deps): bump github.com/docker/docker from `28.0.0+incompatible` to `28.0.1+incompatible` by @dependabot in https://github.com/docker/compose/pull/12591 * Build(deps): bump github.com/docker/buildx from `0.21.1` to `0.21.2` by @dependabot in https://github.com/docker/compose/pull/12598 * Build(deps): bump github.com/opencontainers/image-spec from `1.1.0` to `1.1.1` by @dependabot in https://github.com/docker/compose/pull/12599 * Build(deps): bump golang.org/x/sync from `0.11.0` to `0.12.0` by @dependabot in https://github.com/docker/compose/pull/12607 * Build(deps): bump google.golang.org/grpc from `1.70.0` to `1.71.0` by @dependabot in https://github.com/docker/compose/pull/12603 * Build(deps): bump golang.org/x/sys from `0.30.0` to `0.31.0` by @dependabot in https://github.com/docker/compose/pull/12608 * Build(deps): bump github.com/moby/buildkit from `0.20.0` to `0.20.1` by @dependabot in https://github.com/docker/compose/pull/12609 * Build(deps): bump tags.cncf.io/container-device-interface from `0.8.1` to `1.0.0` by @dependabot in https://github.com/docker/compose/pull/12617 * Bump compose-go to version `v2.4.9` by @glours in https://github.com/docker/compose/pull/12633 ## New Contributors * @emersion made their first contribution in https://github.com/docker/compose/pull/12572 * @andrew-kramer made their first contribution in https://github.com/docker/compose/pull/12559 * @landism made their first contribution in https://github.com/docker/compose/pull/12630 * @dmke made their first contribution in https://github.com/docker/compose/pull/12628 **Full Changelog**: https://github.com/docker/compose/compare/v2.33.1...v2.34.0