From e9664b9f3435ea025623bb9e22a28047b4bce535 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 29 Sep 2025 10:40:17 +0200 Subject: [PATCH] cli/config/types: remove deprecated AuthConfig.Email field Relates to [cli@27b2797], which forked this type from the Moby API, and [cli@aab947d], which fixed the deprecation comment. This field is no longer used since Docker 1.11 (API version 1.23) through [moby@aee260d] and [engine-api@9a9e468], and the fix of the deprecation comment was included in the 28.4.0 release. This patch removes the field. [cli@27b2797]: https://github.com/docker/cli/commit/27b2797f7deb3ca5b7f80371d825113deb1faca1 [cli@aab947d]: https://github.com/docker/cli/commit/aab947de8f5cd2db3dd9d8ead0f38d3246557750 [moby@aee260d]: https://github.com/moby/moby/commit/aee260d4eb3aa0fc86ee5038010b7bbc24512ae5 [engine-api@9a9e468]: https://github.com/docker-archive-public/docker.engine-api/commit/9a9e468f503eb731d6fdc9d7f98c122e1b397c86 Signed-off-by: Sebastiaan van Stijn --- cli/config/types/authconfig.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cli/config/types/authconfig.go b/cli/config/types/authconfig.go index 95eb27c86..9fe90003b 100644 --- a/cli/config/types/authconfig.go +++ b/cli/config/types/authconfig.go @@ -6,11 +6,6 @@ type AuthConfig struct { Password string `json:"password,omitempty"` Auth string `json:"auth,omitempty"` - // Email is an optional value associated with the username. - // - // Deprecated: This field is deprecated since docker 1.11 (API v1.23) and will be removed in the next release. - Email string `json:"email,omitempty"` - ServerAddress string `json:"serveraddress,omitempty"` // IdentityToken is used to authenticate the user and get