release-notes for Compose v2.40.3 version (#23629)

<!--Delete sections as needed -->

## Description
Add release notes of latest `v2.40.3` version of Compose

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## 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-11-03 11:54:34 +01:00
committed by GitHub
parent 610f6995ad
commit 24ca6ef7aa
7 changed files with 20 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ a script.
| `--dry-run` | `bool` | | Execute command in dry run mode |
| `-e`, `--env` | `stringArray` | | Set environment variables |
| `--index` | `int` | `0` | Index of the container if service has multiple replicas |
| `-T`, `--no-tty` | `bool` | `true` | Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY. |
| `-T`, `--no-tty` | `bool` | `true` | Disable pseudo-TTY allocation. By default 'docker compose exec' allocates a TTY. |
| `--privileged` | `bool` | | Give extended privileges to the process |
| `-u`, `--user` | `string` | | Run the command as this user |
| `-w`, `--workdir` | `string` | | Path to workdir directory for this command |

View File

@@ -63,7 +63,7 @@ options:
value_type: bool
default_value: "true"
description: |
Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY.
Disable pseudo-TTY allocation. By default 'docker compose exec' allocates a TTY.
deprecated: false
hidden: false
experimental: false

View File

@@ -2,7 +2,7 @@
# 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.2
# github.com/docker/compose/v2 v2.40.3
# github.com/docker/model-runner/cmd/cli v0.1.44
# github.com/docker/mcp-gateway v0.22.0
# github.com/docker/scout-cli v1.18.4

View File

@@ -15,6 +15,18 @@ aliases:
For more detailed information, see the [release notes in the Compose repo](https://github.com/docker/compose/releases/).
## 2.40.3
{{< release-date date="2025-10-30" >}}
### Bug fixes and enhancements
- Lifecycle hooks now apply to the `restart` command
- Improved override support when publishing OCI artifacts
- Fixed an issue to ensure an image exists only for targeted services with the `run` command
- Added a default Prompt implementation
## 2.40.2
{{< release-date date="2025-10-22" >}}

4
go.mod
View File

@@ -28,7 +28,7 @@ require (
github.com/dlclark/regexp2 v1.11.0 // indirect
github.com/docker/buildx v0.29.1 // indirect
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.2 // indirect
github.com/docker/compose/v2 v2.40.3 // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
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
@@ -132,7 +132,7 @@ 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.40.2
github.com/docker/compose/v2 => github.com/docker/compose/v2 v2.40.3
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

2
go.sum
View File

@@ -106,6 +106,8 @@ github.com/docker/compose/v2 v2.40.1 h1:05it8xe0xH3qVGx8KxHf8XFKrcWqY1RpJ0OHCPe+
github.com/docker/compose/v2 v2.40.1/go.mod h1:CbSJpKGw20LInVsPjglZ8z7Squ3OBQOD7Ux5nkjGfIU=
github.com/docker/compose/v2 v2.40.2 h1:h2bDBJkOuqmj93XvT2oI0ArPQonE0lGtWiILXdiXvbA=
github.com/docker/compose/v2 v2.40.2/go.mod h1:CbSJpKGw20LInVsPjglZ8z7Squ3OBQOD7Ux5nkjGfIU=
github.com/docker/compose/v2 v2.40.3 h1:XeYkQu1svDtyfZPv5nTwFryQ25ZJMkIlc4pz9HalMPI=
github.com/docker/compose/v2 v2.40.3/go.mod h1:iNY1tvoHTyN3C3QHCuWAgj3OjR2T6mGkk/qxfbBF/4M=
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=

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.1"
compose_version: "v2.40.3"
# Latest BuildKit version
buildkit_version: "0.25.0"