Merge pull request #6491 from thaJeztah/28.x_backport_deprecate_defaultversion

[28.x backport] cli/command: deprecate DockerCli.DefaultVersion
This commit is contained in:
Paweł Gronowski
2025-09-25 11:25:04 +00:00
committed by GitHub
+2 -1
View File
@@ -48,7 +48,6 @@ type Cli interface {
Apply(ops ...CLIOption) error
config.Provider
ServerInfo() ServerInfo
DefaultVersion() string
CurrentVersion() string
BuildKitEnabled() (bool, error)
ContextStore() store.Store
@@ -89,6 +88,8 @@ type DockerCli struct {
}
// DefaultVersion returns [api.DefaultVersion].
//
// Deprecated: this function is no longer used and will be removed in the next release.
func (*DockerCli) DefaultVersion() string {
return api.DefaultVersion
}