Docker Compose v5.4.0 introduces a new resource reconciliation engine for volumes and networks alongside numerous bug fixes for config flags, service selection, and image building. Developers and DevOps engineers will benefit from improved resource planning, better resilience against missing environment files, and updated underlying dependencies.
You can benefit from more robust config flag application, improved image/hook resolution, and fewer issues with missing environment files during runtime commands.
📊 Product & Engineering Leads
This release advances resource lifecycle planning and CLI stability, enhancing overall development velocity and reliability.
⚙️ DevOps & Security
Monitor the new resource reconciliation model for volumes and networks, and leverage updated OIDC publishing workflows and dependency bumps.
✨ New Features & Capabilities (2)
Model volume recreation in the plan
Model network lifecycle in the plan
⚡ Performance & Enhancements (2)
Preserve zero-replica services during hashing
Honor --insecure-registry when 'up' re-loads the model
🔧 Bug Fixes & Patches (7)
Warn when service selection is silently ignored
Use platform image-manifest digest instead of attested index for builds
Pin type:image volume sources and pre_start hook images
Tolerate missing env file on more runtime commands, scale, watch, and shell completion
Resolve pre_start hook images alongside service images
Return non-nil Content from dry-run CopyFromContainer
Apply config flags to --services/--volumes/--networks/--models/--hash
❓ Frequently Asked Questions
Does Docker Compose v5.4.0 contain breaking changes?
No breaking changes are explicitly documented in the release notes for v5.4.0.
What is the primary highlight of v5.4.0?
The primary highlight is the introduction of a new resource reconciliation model for volumes and networks.
How should teams prepare to upgrade to v5.4.0?
Teams should review their volume and network definitions against the new reconciliation plan and verify compatibility with the latest buildkit and dependency versions.
📄 View Raw Release Notes (Original Developer Log)
## What's Changed
> ℹ️ This release introduces a new way to reconcile resources such as volumes and networks
### ✨ Improvements
* Feat(reconcile): model volume recreation in the plan by @ndeloof in https://github.com/docker/compose/pull/13962
* Feat(reconcile): model network lifecycle in the plan by @ndeloof in https://github.com/docker/compose/pull/13966
### 🐛 Fixes
* Fix(reconcile): preserve zero-replica services during hashing by @junhaoliao in https://github.com/docker/compose/pull/13931
* Fix(config): warn when service selection is silently ignored by @glours in https://github.com/docker/compose/pull/13950
* Fix(build): use platform image-manifest digest, not attested index by @glours in https://github.com/docker/compose/pull/13949
* Fix(oci): honor --insecure-registry when `up` re-loads the model by @ptrdom in https://github.com/docker/compose/pull/13894
* Fix(config): pin type:image volume sources and pre_start hook images by @glours in https://github.com/docker/compose/pull/13956
* Tolerate missing env file on more runtime commands by @maxproske in https://github.com/docker/compose/pull/13603
* Resolve `pre_start` hook images alongside service images by @ndeloof in https://github.com/docker/compose/pull/13937
* Fix(cp): return non-nil Content from dry-run CopyFromContainer by @glours in https://github.com/docker/compose/pull/13982
* Fix(config): apply config flags to `--services`/`--volumes`/`--networks`/`--models`/`--hash` by @glours in https://github.com/docker/compose/pull/13979
* Fix: tolerate missing env file on scale, watch and shell completion by @glours in https://github.com/docker/compose/pull/13973
### 🔧 Internal
* README: remove Go Report Card badge by @thaJeztah in https://github.com/docker/compose/pull/13926
* Docs: adopt `AGENTS.md` standard, symlink `CLAUDE.md` to it by @glours in https://github.com/docker/compose/pull/13871
* Dockerfile: update golang image to alpine `3.23` by @thaJeztah in https://github.com/docker/compose/pull/13921
* Docs: require dated `AI_AGENT_DISCLOSURE.md`, drop committed copy by @glours in https://github.com/docker/compose/pull/13976
* CI: publish images to Docker Hub using OIDC by @glours in https://github.com/docker/compose/pull/13994
### ⚙️ Dependencies
* Build(deps): bump github/codeql-action/upload-sarif from `4.36.2` to `4.37.0` by @dependabot[bot] in https://github.com/docker/compose/pull/13942
* Build(deps): bump the docker-actions group across 1 directory with 4 updates by @dependabot[bot] in https://github.com/docker/compose/pull/13941
* Build(deps): bump actions/stale from `10.3.0` to `10.4.0` by @dependabot[bot] in https://github.com/docker/compose/pull/13943
* Build(deps): bump github.com/mattn/go-shellwords from `1.0.13` to `1.0.14` by @dependabot[bot] in https://github.com/docker/compose/pull/13948
* Build(deps): bump golang.org/x/sync from `0.21.0` to `0.22.0` by @dependabot[bot] in https://github.com/docker/compose/pull/13927
* Build(deps): bump golang.org/x/sys from `0.46.0` to `0.47.0` by @dependabot[bot] in https://github.com/docker/compose/pull/13928
* Build(deps): bump docker/github-builder/.github/workflows/bake.yml from `1.13.0` to `1.14.0` in the docker-actions group by @dependabot[bot] in https://github.com/docker/compose/pull/13953
* Build(deps): bump google.golang.org/grpc from `1.81.1` to `1.82.0` by @dependabot[bot] in https://github.com/docker/compose/pull/13922
* Build(deps): bump softprops/action-gh-release from `3.0.1` to `3.0.2` by @dependabot[bot] in https://github.com/docker/compose/pull/13955
* Build(deps): bump actions/setup-go from `6.5.0` to `7.0.0` by @dependabot[bot] in https://github.com/docker/compose/pull/13960
* Build(deps): bump google.golang.org/grpc from `1.82.0` to `1.82.1` in the go_modules group across 1 directory by @dependabot[bot] in https://github.com/docker/compose/pull/13961
* Build(deps): bump github.com/docker/cli from `29.6.1+incompatible` to `29.6.2+incompatible` by @dependabot[bot] in https://github.com/docker/compose/pull/13968
* Build(deps): bump github/codeql-action/upload-sarif from `4.37.0` to `4.37.3` by @dependabot[bot] in https://github.com/docker/compose/pull/13981
* Build(deps): bump actions/checkout from `7.0.0` to `7.0.1` by @dependabot[bot] in https://github.com/docker/compose/pull/13970
* Build(deps): bump github.com/moby/buildkit from `0.31.1` to `0.31.2` by @dependabot[bot] in https://github.com/docker/compose/pull/13969
* Bump compose-go to version `v2.14.0` by @glours in https://github.com/docker/compose/pull/13983
* Bump go-archive to version `v0.3.0` by @glours in https://github.com/docker/compose/pull/13986
* Build(deps): bump docker/github-builder/.github/workflows/bake.yml from `1.14.0` to `1.15.0` in the docker-actions group by @dependabot[bot] in https://github.com/docker/compose/pull/13989
* Chore(deps): bump github.com/moby/go-archive `v0.3.2` by @thaJeztah in https://github.com/docker/compose/pull/13991
* Update to `go1.26.5` by @thaJeztah in https://github.com/docker/compose/pull/13920
* Build(deps): bump actions/stale from `10.4.0` to `11.0.0` by @dependabot[bot] in https://github.com/docker/compose/pull/13996
* Build(deps): bump docker/docker-agent-action/.github/workflows/review-pr.yml from `2.0.2` to `2.0.3` in the docker-actions group by @dependabot[bot] in https://github.com/docker/compose/pull/13995
* Build(deps): bump ossf/scorecard-action from `2.4.3` to `2.4.4` by @dependabot[bot] in https://github.com/docker/compose/pull/13984
* Chore(deps): github.com/docker/buildx `v0.36.0`, buildkit `v0.32.0` by @glours in https://github.com/docker/compose/pull/13975
* Bump buildkit `v0.32.1` by @glours in https://github.com/docker/compose/pull/13997
## New Contributors
* @junhaoliao made their first contribution in https://github.com/docker/compose/pull/13931
**Full Changelog**: https://github.com/docker/compose/compare/v5.3.1...v5.4.0