diff --git a/cli/command/registry.go b/cli/command/registry.go index be49d85b6bb8..d02d88db2dfd 100644 --- a/cli/command/registry.go +++ b/cli/command/registry.go @@ -36,6 +36,8 @@ const authConfigKey = "https://index.docker.io/v1/" // RegistryAuthenticationPrivilegedFunc returns a RequestPrivilegeFunc from the specified registry index info // for the given command to prompt the user for username and password. +// +// Deprecated: this function is no longer used and will be removed in the next release. func RegistryAuthenticationPrivilegedFunc(cli Cli, index *registrytypes.IndexInfo, cmdName string) registrytypes.RequestAuthConfig { configKey := getAuthConfigKey(index.Name) isDefaultRegistry := configKey == authConfigKey || index.Official