Align credential helper logic with Docker CLI
See gh-45269
This commit is contained in:
@@ -133,8 +133,7 @@ class DockerRegistryConfigAuthentication implements DockerRegistryAuthentication
|
||||
}
|
||||
|
||||
private CredentialHelper getCredentialHelper(String serverUrl) {
|
||||
String name = this.dockerConfig.getCredHelpers().get(serverUrl);
|
||||
name = (StringUtils.hasText(name)) ? name : this.dockerConfig.getCredsStore();
|
||||
String name = this.dockerConfig.getCredHelpers().getOrDefault(serverUrl, this.dockerConfig.getCredsStore());
|
||||
return (name != null) ? this.credentialHelperFactory.apply(name.trim()) : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user