Compose can now officially be used as a SDK to be integrated into third-party softwares
Internal builder has been removed, build is delegated to Docker Bake (same as docker build command)
Why "v5" ?
We decided to skip 3.0.0 for next major release after docker Compose v2 to prevent (more) confusion with the obsolete docker-compose file versions 2.x and 3.x inherited from Docker Compose v1. We also skipped 4.0.0 to have a clear separation with this legacy.
What's Changed
✨ Improvements
drop support for internal buildkit builder by @ndeloof in #13056
Setup Compose service using functional parameters by @ndeloof in #13312
Introduce abstractions to support SDK usage without requiring Docker CLI by @glours in #13313
configure Compose service with io.Reader and io.Writer by @glours in #13322
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [docker/compose](https://github.com/docker/compose) | major | `2.40.3` -> `5.0.0` |
| [docker/compose](https://github.com/docker/compose) | major | `v2.40.3` -> `v5.0.0` |
---
### Release Notes
<details>
<summary>docker/compose (docker/compose)</summary>
### [`v5.0.0`](https://github.com/docker/compose/releases/tag/v5.0.0): "Mont Blanc"
[Compare Source](https://github.com/docker/compose/compare/v2.40.3...v5.0.0)

Major changes in this release:
- Compose can now officially be used as a SDK to be integrated into third-party softwares
- Internal builder has been removed, build is delegated to Docker Bake (same as `docker build` command)
##### Why "v5" ?
We decided to skip `3.0.0` for next major release after docker Compose v2 to prevent (more) confusion with the obsolete docker-compose file versions `2.x` and `3.x` inherited from Docker Compose v1. We also skipped `4.0.0` to have a clear separation with this legacy.
##### What's Changed
##### ✨ Improvements
- drop support for internal buildkit builder by [@​ndeloof](https://github.com/ndeloof) in [#​13056](https://github.com/docker/compose/pull/13056)
- Setup Compose service using functional parameters by [@​ndeloof](https://github.com/ndeloof) in [#​13312](https://github.com/docker/compose/pull/13312)
- Introduce abstractions to support SDK usage without requiring Docker CLI by [@​glours](https://github.com/glours) in [#​13313](https://github.com/docker/compose/pull/13313)
- configure Compose service with io.Reader and io.Writer by [@​glours](https://github.com/glours) in [#​13322](https://github.com/docker/compose/pull/13322)
- Make progress Writer a CLI component by [@​ndeloof](https://github.com/ndeloof) in [#​13316](https://github.com/docker/compose/pull/13316)
- SDK docs by [@​ndeloof](https://github.com/ndeloof) in [#​13350](https://github.com/docker/compose/pull/13350)
- document support for OCI and Git remote resources by [@​ndeloof](https://github.com/ndeloof) in [#​13362](https://github.com/docker/compose/pull/13362)
- run hooks on restart by [@​ndeloof](https://github.com/ndeloof) in [#​13321](https://github.com/docker/compose/pull/13321)
- fix(run): Ensure images exist only for the target service in run command by [@​idsulik](https://github.com/idsulik) in [#​13325](https://github.com/docker/compose/pull/13325)
- Add load project to api definition by [@​glours](https://github.com/glours) in [#​13329](https://github.com/docker/compose/pull/13329)
- introduce --insecure-registry, reserved for testing purpose by [@​ndeloof](https://github.com/ndeloof) in [#​13355](https://github.com/docker/compose/pull/13355)
- Move progress package to cmd as a command line component by [@​ndeloof](https://github.com/ndeloof) in [#​13357](https://github.com/docker/compose/pull/13357)
- Added support for `build.no_cache_filter` by [@​ndeloof](https://github.com/ndeloof) in [#​13377](https://github.com/docker/compose/pull/13377)
- add --wait option to start command by [@​ndeloof](https://github.com/ndeloof) in [#​13409](https://github.com/docker/compose/pull/13409)
##### 🐛 Fixes
- fix OCI compose override support by [@​ndeloof](https://github.com/ndeloof) in [#​13311](https://github.com/docker/compose/pull/13311)
- Fix help output for "exec --no-tty" option by [@​tonyo](https://github.com/tonyo) in [#​13314](https://github.com/docker/compose/pull/13314)
- fix typo in error message by [@​stasadev](https://github.com/stasadev) in [#​13328](https://github.com/docker/compose/pull/13328)
- disable progress UI when build is ran with --print by [@​ndeloof](https://github.com/ndeloof) in [#​13351](https://github.com/docker/compose/pull/13351)
- add (restore) support for detach keys by [@​ndeloof](https://github.com/ndeloof) in [#​13369](https://github.com/docker/compose/pull/13369)
- images command should display image Created time or N/A if not available by [@​ndeloof](https://github.com/ndeloof) in [#​13376](https://github.com/docker/compose/pull/13376)
- Fix support for port range by [@​ndeloof](https://github.com/ndeloof) in [#​13381](https://github.com/docker/compose/pull/13381)
- skip includes preparing publish by [@​ndeloof](https://github.com/ndeloof) in [#​13400](https://github.com/docker/compose/pull/13400)
- feat(model): ignore runtime flags in model configuration by [@​ilopezluna](https://github.com/ilopezluna) in [#​13404](https://github.com/docker/compose/pull/13404)
##### 🔧 Internal
- Next release will be major version v5.x by [@​ndeloof](https://github.com/ndeloof) in [#​13375](https://github.com/docker/compose/pull/13375)
- Test to check writeComposeFile detects invalid OCI artifact by [@​ndeloof](https://github.com/ndeloof) in [#​13309](https://github.com/docker/compose/pull/13309)
- Code Cleanup by [@​ndeloof](https://github.com/ndeloof) in [#​13315](https://github.com/docker/compose/pull/13315)
- fix various linting issues by [@​thaJeztah](https://github.com/thaJeztah) in [#​13326](https://github.com/docker/compose/pull/13326)
- Making the American/British spellings consistent to the error messages by [@​JLesDev](https://github.com/JLesDev) in [#​13366](https://github.com/docker/compose/pull/13366)
- gha: test against docker v29, v28, and rename checks to use `stable`, `oldstable` by [@​thaJeztah](https://github.com/thaJeztah) in [#​13380](https://github.com/docker/compose/pull/13380)
- refactor: replace Split in loops with more efficient SplitSeq by [@​vicerace](https://github.com/vicerace) in [#​13393](https://github.com/docker/compose/pull/13393)
- refactor: use strings.Builder to improve performance by [@​liuyueyangxmu](https://github.com/liuyueyangxmu) in [#​13398](https://github.com/docker/compose/pull/13398)
- Fix grammar: change 'adopted' to 'adopt' in Docker Swarm note by [@​rashmivagha](https://github.com/rashmivagha) in [#​13407](https://github.com/docker/compose/pull/13407)
- golangci-lint: use gci formatter instead of goimports by [@​thaJeztah](https://github.com/thaJeztah) in [#​13406](https://github.com/docker/compose/pull/13406)
- refactor: replace interface{} with any for clarity and modernization by [@​zjumathcode](https://github.com/zjumathcode) in [#​13411](https://github.com/docker/compose/pull/13411)
##### ⚙️ Dependencies
- Bump compose go to v2.10.0 by [@​ndeloof](https://github.com/ndeloof) in [#​13410](https://github.com/docker/compose/pull/13410)
- build(deps): bump github.com/containerd/platforms from 1.0.0-rc.1 to 1.0.0-rc.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​13353](https://github.com/docker/compose/pull/13353)
- build(deps): bump github.com/docker/docker from 28.5.1+incompatible to 28.5.2+incompatible by [@​dependabot](https://github.com/dependabot)\[bot] in [#​13361](https://github.com/docker/compose/pull/13361)
- build(deps): bump github.com/containerd/containerd/v2 from 2.1.4 to 2.2.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​13358](https://github.com/docker/compose/pull/13358)
- build(deps): bump github.com/docker/cli from 28.5.1+incompatible to 28.5.2+incompatible by [@​dependabot](https://github.com/dependabot)\[bot] in [#​13360](https://github.com/docker/compose/pull/13360)
- build(deps): bump golang.org/x/sys from 0.37.0 to 0.38.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​13367](https://github.com/docker/compose/pull/13367)
- build(deps): bump golang.org/x/sync from 0.17.0 to 0.18.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​13368](https://github.com/docker/compose/pull/13368)
- Dockerfile: update golangci-lint to v2.6.2 by [@​thaJeztah](https://github.com/thaJeztah) in [#​13370](https://github.com/docker/compose/pull/13370)
- build(deps): bump buildx v0.30.0, buildkit v0.26.0, otel v1.38.0, otel/contrib v0.63.0 by [@​thaJeztah](https://github.com/thaJeztah) in [#​13379](https://github.com/docker/compose/pull/13379)
- bump dependencies by [@​ndeloof](https://github.com/ndeloof) in [#​13392](https://github.com/docker/compose/pull/13392)
- build(deps): bump github.com/hashicorp/go-version from 1.7.0 to 1.8.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​13403](https://github.com/docker/compose/pull/13403)
- build(deps): bump golang.org/x/crypto v0.45.0 by [@​thaJeztah](https://github.com/thaJeztah) in [#​13405](https://github.com/docker/compose/pull/13405)
##### New Contributors
- [@​tonyo](https://github.com/tonyo) made their first contribution in [#​13314](https://github.com/docker/compose/pull/13314)
- [@​stasadev](https://github.com/stasadev) made their first contribution in [#​13328](https://github.com/docker/compose/pull/13328)
- [@​JLesDev](https://github.com/JLesDev) made their first contribution in [#​13366](https://github.com/docker/compose/pull/13366)
- [@​vicerace](https://github.com/vicerace) made their first contribution in [#​13393](https://github.com/docker/compose/pull/13393)
- [@​liuyueyangxmu](https://github.com/liuyueyangxmu) made their first contribution in [#​13398](https://github.com/docker/compose/pull/13398)
- [@​ilopezluna](https://github.com/ilopezluna) made their first contribution in [#​13404](https://github.com/docker/compose/pull/13404)
- [@​rashmivagha](https://github.com/rashmivagha) made their first contribution in [#​13407](https://github.com/docker/compose/pull/13407)
- [@​zjumathcode](https://github.com/zjumathcode) made their first contribution in [#​13411](https://github.com/docker/compose/pull/13411)
**Full Changelog**: <https://github.com/docker/compose/compare/v2.40.2...v5.0.0>
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNDAuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE0MC4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
2.40.3->5.0.0v2.40.3->v5.0.0Release Notes
docker/compose (docker/compose)
v5.0.0: "Mont Blanc"Compare Source
Major changes in this release:
docker buildcommand)Why "v5" ?
We decided to skip
3.0.0for next major release after docker Compose v2 to prevent (more) confusion with the obsolete docker-compose file versions2.xand3.xinherited from Docker Compose v1. We also skipped4.0.0to have a clear separation with this legacy.What's Changed
✨ Improvements
build.no_cache_filterby @ndeloof in #13377🐛 Fixes
🔧 Internal
stable,oldstableby @thaJeztah in #13380⚙️ Dependencies
New Contributors
Full Changelog: https://github.com/docker/compose/compare/v2.40.2...v5.0.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Renovate Bot.