Skip to content

[TBD] api/types/image: InspectResponse: deprecate Author#51107

Draft
thaJeztah wants to merge 1 commit intomoby:masterfrom
thaJeztah:deprecate_inspect_author
Draft

[TBD] api/types/image: InspectResponse: deprecate Author#51107
thaJeztah wants to merge 1 commit intomoby:masterfrom
thaJeztah:deprecate_inspect_author

Conversation

@thaJeztah
Copy link
Member


relates to:

api/types/image: InspectResponse: deprecate Author

The Author field can be set through the MAINTAINER instruction in
Dockerfiles, and through the --author option on docker commit, but
is optional, and won't be set in most situations.

This patch deprecates the fields in the InspectResponse go struct. The
Author field can still be set but is deprecated in the Dockerfile syntax,
so should not be depended on. This field was implicitly deprecated when
the MAINTAINER command was deprecated in moby@efb9e38 / moby@6694974
(docker 1.13, API v1.25), however the related API fields were kept so
that information of legacy images would not be discarded.

The API continues to return the field if set, allowing the client to
print the fields for informational purposes when printing the raw response,
but these fields should be considered "transitional", and not be depended
on; deprecating the fields helps raise awareness.

- Human readable description for the release notes

api/types/image: InspectResponse: deprecate `Author`

- A picture of a cute animal (not mandatory but encouraged)

The `Author` field can be set through the `MAINTAINER` instruction in
Dockerfiles, and through the `--author` option on `docker commit`, but
is optional, and won't be set in most situations.

This patch deprecates the fields in the `InspectResponse` go struct. The
`Author` field can still be set but is deprecated in the Dockerfile syntax,
so should not be depended on. This field was implicitly deprecated when
the `MAINTAINER` command was deprecated in [moby/moby@efb9e38] / [moby/moby@6694974]
(docker 1.13, API v1.25), however the related API fields were kept so
that information of legacy images would not be discarded.

The API continues to return the field if set, allowing the client to
print the fields for informational purposes when printing the raw response,
but these fields should be considered "transitional", and not be depended
on; deprecating the fields helps raise awareness.

[moby/moby@efb9e38]: moby@efb9e38
[moby/moby@6694974]: moby@6694974

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the deprecate_inspect_author branch from 97a98eb to 982cd93 Compare October 6, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant