release-notes for Compose v2.40.1 version (#23575)

<!--Delete sections as needed -->

## Description
Add release notes of Compose `v2.40.1` release

## Related issues or tickets
N/A

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Technical review
- [x] Editorial review
- [ ] Product review

---------

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com>
This commit is contained in:
Guillaume Lours
2025-10-20 12:28:47 +02:00
committed by GitHub
parent c0e404f003
commit 3bb0bfdfc0
8 changed files with 54 additions and 14 deletions

View File

@@ -7,6 +7,7 @@ Publish compose application
| Name | Type | Default | Description |
|:--------------------------|:---------|:--------|:-------------------------------------------------------------------------------|
| `--app` | `bool` | | Published compose application (includes referenced images) |
| `--dry-run` | `bool` | | Execute command in dry run mode |
| `--oci-version` | `string` | | OCI image/artifact specification version (automatically determined by default) |
| `--resolve-image-digests` | `bool` | | Pin image tags to digests |

View File

@@ -5,6 +5,16 @@ usage: docker compose alpha publish [OPTIONS] REPOSITORY[:TAG]
pname: docker compose alpha
plink: docker_compose_alpha.yaml
options:
- option: app
value_type: bool
default_value: "false"
description: Published compose application (includes referenced images)
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false
- option: oci-version
value_type: string
description: |

View File

@@ -5,6 +5,16 @@ usage: docker compose publish [OPTIONS] REPOSITORY[:TAG]
pname: docker compose
plink: docker_compose.yaml
options:
- option: app
value_type: bool
default_value: "false"
description: Published compose application (includes referenced images)
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false
- option: oci-version
value_type: string
description: |

View File

@@ -1,5 +1,5 @@
# github.com/moby/moby v28.5.1+incompatible
# github.com/moby/buildkit v0.25.0
# github.com/moby/buildkit v0.25.1
# github.com/docker/buildx v0.29.1
# github.com/docker/cli v28.5.1+incompatible
# github.com/docker/compose/v2 v2.40.0

View File

@@ -15,19 +15,22 @@ aliases:
For more detailed information, see the [release notes in the Compose repo](https://github.com/docker/compose/releases/).
## 2.39.4
## 2.40.1
{{< release-date date="2025-09-19" >}}
{{< release-date date="2025-10-17" >}}
### Bug fixes and enhancements
- Added `initial_sync` attribute to the Compose Develop Specification definition, to sync files after starting a watch session
- Fixed a TLS issue when building with bake
- Disabled Tty on `run` when running as a piped command
- Fixed a few issues when building with bake
- Added support of extends with profiles when using the `publish` command
- Added support of `CTRL+Z` to run Compose in background
- Fixed secret/config setup of uid:gid to match container's USER definition
### Update
- Dependencies upgrade: bump compose-go to v2.9.0
- Dependencies upgrade: bump docker engine and cli to v28.5.1
- Dependencies upgrade: bump buildx to v0.29.1
- Dependencies upgrade: bump golang to v1.24.9
## 2.40.0
@@ -43,6 +46,19 @@ For more detailed information, see the [release notes in the Compose repo](https
- Dependencies upgrade: bump docker engine and cli to v28.5.0
## 2.39.4
{{< release-date date="2025-09-19" >}}
### Bug fixes and enhancements
- Added `initial_sync` attribute to the Compose Develop Specification definition, to sync files after starting a watch session
- Fixed a TLS issue when building with bake
- Disabled Tty on `run` when running as a piped command
### Update
- Dependencies upgrade: bump compose-go to v2.9.0
## 2.39.3

12
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/docker/docs
go 1.24.7
go 1.24.9
require (
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
@@ -30,7 +30,7 @@ require (
github.com/docker/cli v28.5.1+incompatible // indirect; see "replace" rule at the bottom for actual version
github.com/docker/compose/v2 v2.40.0 // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
github.com/docker/docker v28.4.0+incompatible // indirect; see "replace" rule at the bottom for actual version
github.com/docker/docker v28.5.1+incompatible // indirect; see "replace" rule at the bottom for actual version
github.com/docker/docker-credential-helpers v0.9.3 // indirect
github.com/docker/go-connections v0.6.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
@@ -68,7 +68,7 @@ require (
github.com/mattn/go-shellwords v1.0.12 // indirect
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/moby/buildkit v0.25.0 // indirect
github.com/moby/buildkit v0.25.1 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/locker v1.0.1 // indirect
github.com/moby/moby v28.5.1+incompatible // indirect; see "replace" rule at the bottom for actual version
@@ -115,7 +115,7 @@ require (
golang.org/x/mod v0.25.0 // indirect
golang.org/x/net v0.41.0 // indirect
golang.org/x/sync v0.17.0 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/sys v0.37.0 // indirect
golang.org/x/term v0.32.0 // indirect
golang.org/x/text v0.26.0 // indirect
golang.org/x/tools v0.34.0 // indirect
@@ -132,11 +132,11 @@ require (
replace (
github.com/docker/buildx => github.com/docker/buildx v0.29.1
github.com/docker/cli => github.com/docker/cli v28.5.1+incompatible
github.com/docker/compose/v2 => github.com/docker/compose/v2 v2.39.4
github.com/docker/compose/v2 => github.com/docker/compose/v2 v2.40.1
github.com/docker/docker => github.com/docker/docker v28.4.0+incompatible
github.com/docker/mcp-gateway => github.com/docker/mcp-gateway v0.22.0
github.com/docker/model-runner/cmd/cli => github.com/docker/model-runner/cmd/cli v0.1.44
github.com/docker/scout-cli => github.com/docker/scout-cli v1.18.4
github.com/moby/buildkit => github.com/moby/buildkit v0.25.0
github.com/moby/moby => github.com/moby/moby v28.5.1+incompatible
github.com/docker/mcp-gateway => github.com/docker/mcp-gateway v0.22.0
)

3
go.sum
View File

@@ -102,6 +102,7 @@ github.com/docker/compose/v2 v2.39.3 h1:a9itRH/aBf9jJM80hQqQYdIzm4+9hcccJRnK5w0F
github.com/docker/compose/v2 v2.39.3/go.mod h1:AOUEk2X2GpWNn/x/WNN55cc+JkH3mBd6gmx71lHZHv4=
github.com/docker/compose/v2 v2.39.4 h1:lXIyl0axf8rZ5ThGm25g0y5nvtj1a9HKS08qfMvHiFM=
github.com/docker/compose/v2 v2.39.4/go.mod h1:HrP3GcmLSdb1YbhcRhr1zWx/8Ulj/9Y+H443hlTAwMA=
github.com/docker/compose/v2 v2.40.1/go.mod h1:CbSJpKGw20LInVsPjglZ8z7Squ3OBQOD7Ux5nkjGfIU=
github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
github.com/docker/docker v28.2.2+incompatible h1:CjwRSksz8Yo4+RmQ339Dp/D2tGO5JxwYeqtMOEe0LDw=
@@ -441,6 +442,8 @@ golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg=
golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

View File

@@ -140,7 +140,7 @@ params:
# (Used to show e.g., "latest" and "latest"-1 in engine install examples
docker_ce_version_prev: "28.5.0"
# Latest Docker Compose version
compose_version: "v2.40.0"
compose_version: "v2.40.1"
# Latest BuildKit version
buildkit_version: "0.25.0"