api/types/events: Message: remove deprecated Status, ID, and From fields by thaJeztah · Pull Request #50832 · moby/moby (original) (raw)

thaJeztah added a commit to thaJeztah/docker that referenced this pull request

Sep 10, 2025

@thaJeztah

Don't include the deprecated status, id, and from fields in event responses.

These fields were deprecated in moby@72f188 (docker v1.10, API v1.22), but the daemon still included them in the response.

Unfortunately, the Docker CLI (and compose indirectly), continued using these fields up until v25.0.0, and panic if the fields are omitted, or left empty (due to a bug), see: moby#50832 (comment) so we need to continue producing these fields on API < v1.52.

Signed-off-by: Sebastiaan van Stijn github@gone.nl

@thaJeztah

These fields were deprecated in moby@72f188 (docker v1.10, API v1.22), and we shouldn't test for them.

Signed-off-by: Sebastiaan van Stijn github@gone.nl

@thaJeztah

Don't include the deprecated status, id, and from fields in event responses.

These fields were deprecated in moby@72f188 (docker v1.10, API v1.22), but the daemon still included them in the response.

Unfortunately, the Docker CLI (and compose indirectly), continued using these fields up until v25.0.0, and panic if the fields are omitted, or left empty (due to a bug), see: moby#50832 (comment) so we need to continue producing these fields on API < v1.52.

Signed-off-by: Sebastiaan van Stijn github@gone.nl

@thaJeztah

These fields were deprecated in moby@72f188 (docker v1.10, API v1.22), with the deprecation message updated to be in the correct format in moby@247f47 (docker v23.0).

Signed-off-by: Sebastiaan van Stijn github@gone.nl

This was referenced

Nov 12, 2025

agners added a commit to home-assistant/supervisor that referenced this pull request

Nov 12, 2025

@agners

The "id" field in Docker events is deprecated since a while and got removed with moby/moby#50832. Use the "actor.id" field instead to avoid issues with newer Docker versions. This field got added with Docker 1.10.0, so much older version then we actually support.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})