Docker Compose v2.27.2stable Released Jun 20, 2024
Impact Score: 4/10

Docker Compose v2.27.2 - 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-27.

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

Docker Compose v2.27.2 introduces the new --environment flag for the config command alongside essential bug fixes for environment variable handling and process management. The update also bumps core dependencies including Go 1.21.11, BuildKit, and Buildx.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Developers can now use the new --environment flag on the config command and benefit from reliable .env file parsing for COMPOSE_PROFILES and COMPOSE_* variables.

📊 Product & Engineering Leads

This release improves overall product stability and enhances developer workflow efficiency through better command-line configuration options.

⚙️ DevOps & Security

Ops engineers should update to benefit from critical bug fixes preventing concurrent map writes, resolving process shutdown hangups with the watch flag, and updating foundational dependencies.

⚡ Performance & Enhancements (1)

  • Add --environment flag to config command

🔧 Bug Fixes & Patches (8)

  • Prevent concurrent map write relying on project immutability
  • Fix COMPOSE_PROFILES can be set by .env file
  • Fix: change append to use slice index in ps
  • Return an error when --detach and --watch are used together in up command
  • Fix dot env file to define COMPOSE_* variables
  • Enforce keyboard.Close is always executed to restore terminal
  • Stop watch process when associated up process is stopped
  • Using as flag of the up command, watch was blocking process shutdown

❓ Frequently Asked Questions

Does Docker Compose v2.27.2 contain breaking changes?

No, there are no breaking changes explicitly documented in this release.

What is the primary highlight of v2.27.2?

The primary highlight is the addition of the --environment flag to the config command, alongside fixes for environment variable handling via .env files.

How should teams prepare to upgrade to v2.27.2?

Teams can upgrade directly as this is a routine patch release containing bug fixes, dependency bumps, and minor improvements.

📄 View Raw Release Notes (Original Developer Log)
## What's Changed ### ✨ Improvements * Add `--environment` flag to `config` command [(11891)](https://github.com/docker/compose/pull/11891) ### 🐛 Fixes * Prevent concurrent map write relying on project immutability [(11860)](https://github.com/docker/compose/pull/11860) * Fix `COMPOSE_PROFILES` can be set by .env file [(11861)](https://github.com/docker/compose/pull/11861) * Fix: change append to use slice index in `ps` [(11862)](https://github.com/docker/compose/pull/11862) * Return an error when `--detach` and `--watch` are used together in `up` command [(11890)](https://github.com/docker/compose/pull/11890) * Fix dot env file to define `COMPOSE_*` variables[(11889)](https://github.com/docker/compose/pull/11889) * Enforce keyboard.Close is always executed to restore terminal [(11896)](https://github.com/docker/compose/pull/11896) * Stop `watch` process when associated `up` process is stopped [(11911)](https://github.com/docker/compose/pull/11911) * Using as flag of the `up` command, `watch` was blocking process shutdown [(11919)](https://github.com/docker/compose/pull/11919) ### 🔧 Internal * Correct typo in comment [(11877)](https://github.com/docker/compose/pull/11877) * Chore(publish): remove unreachable code[(11888)](https://github.com/docker/compose/pull/11888) * Update GH actions versions, update engine matrix, bump Golang to 1.21.11 [(11885)](https://github.com/docker/compose/pull/11885) * Build: replace uses of archive.CanonicalTarNameForPath [(11910)](https://github.com/docker/compose/pull/11910) * Add open watch docs in up menu [(11917)](https://github.com/docker/compose/pull/11917) ### ⚙️ Dependencies * Build(deps): bump github.com/hashicorp/go-version from `1.6.0` to `1.7.0`[(11854)](https://github.com/docker/compose/pull/11854) * Build(deps): bump golang.org/x/sys from `0.20.0` to `0.21.0` [(11883)](https://github.com/docker/compose/pull/11883) * Build(deps): bump github.com/containerd/containerd from `1.7.17` to `1.7.18` [(11897)](https://github.com/docker/compose/pull/11897) * Build(deps): bump github.com/docker/docker from `26.1.3+incompatible` to `26.1.4+incompatible` [(11898)](https://github.com/docker/compose/pull/11898) * Bump buildkit to `0.14.0` and buildx to `0.15.0` [(11913)](https://github.com/docker/compose/pull/11913) ## New Contributors * @IDOMATH made their first contribution in https://github.com/docker/compose/pull/11862 * @korverdev made their first contribution in https://github.com/docker/compose/pull/11877 * @Lunal98 made their first contribution in https://github.com/docker/compose/pull/11888 **Full Changelog**: https://github.com/docker/compose/compare/v2.27.1...v2.27.2