Skip to content

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Oct 10, 2025

relates to:

remove API-version compatibility for API < v1.44

Support for API versions < v1.44 was removed in the client in moby@96b29f5
and moby@7652f38, so we can remove fallback-code from the CLI as well,
as it won't be able to use those versions.

cli/command/container: rm use of deprecated MacAddress field

This field is no longer in use since API v1.44.

cli/command/service: remove AppendServiceStatus (API <v1.41)

This function was added in 7405ac5 as
a fallback for API < v1.41, which did not include the service status
in the response. Current API versions return this information, so there's
no need to fetch it manually.

It was not gated by API version for some tests (which didn't set API
version), but should not be needed for non-test situations.

cli/command/container, image: remove addPlatformFlag utility

It was created for api-version conditionally setting the flag options.

docs: update some versions in examples

- Human readable description for the release notes

remove API-version compatibility for API < v1.44 (docker 24.0 and older)

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

@thaJeztah thaJeztah added this to the 29.0.0 milestone Oct 10, 2025
@thaJeztah thaJeztah changed the title Remove legacy api versions remove API-version compatibility for API < v1.44 Oct 10, 2025
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2025

Codecov Report

❌ Patch coverage is 69.04762% with 13 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cli/command/service/update.go 0.00% 5 Missing ⚠️
cli/command/stack/remove.go 33.33% 2 Missing and 2 partials ⚠️
cli/command/service/create.go 0.00% 2 Missing ⚠️
cli/command/service/scale.go 0.00% 1 Missing ⚠️
cli/compose/convert/service.go 50.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@thaJeztah thaJeztah force-pushed the remove_legacy_api_versions branch 2 times, most recently from 6d4b033 to 8f7cc42 Compare October 10, 2025 17:47
@thaJeztah thaJeztah marked this pull request as ready for review October 10, 2025 17:48
@thaJeztah thaJeztah requested review from a team and silvin-lubecki as code owners October 10, 2025 17:48
@thaJeztah thaJeztah force-pushed the remove_legacy_api_versions branch 3 times, most recently from 1ce0591 to c939c9b Compare October 10, 2025 19:20
Support for API versions < v1.44 was removed in the client in [moby@96b29f5]
and [moby@7652f38], so we can remove fallback-code from the CLI as well,
as it won't be able to use those versions.

[moby@96b29f5]: moby/moby@96b29f5
[moby@7652f38]: moby/moby@7652f38

Signed-off-by: Sebastiaan van Stijn <[email protected]>
This field is no longer in use since API v1.44.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
This function was added in 7405ac5 as
a fallback for API < v1.41, which did not include the service status
in the response. Current API versions return this information, so there's
no need to fetch it manually.

It was not gated by API version for some tests (which didn't set API
version), but should not be needed for non-test situations.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the remove_legacy_api_versions branch from c939c9b to 5ad9145 Compare October 10, 2025 19:28
@thaJeztah
Copy link
Member Author

thanks!

@thaJeztah thaJeztah merged commit 01febbc into docker:master Oct 10, 2025
97 of 99 checks passed
@thaJeztah thaJeztah deleted the remove_legacy_api_versions branch October 10, 2025 20:53
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.

3 participants