Merge pull request #10929 from AchilleAsh/fix-token-docker-auth-config

fix: load token in docker auth config
This commit is contained in:
James Rasell 2021-08-05 10:44:39 +02:00 committed by GitHub
commit 61436b437a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,8 @@ func authFromDockerConfig(file string) authBackend {
Password: dockerAuthConfig.Password,
Email: dockerAuthConfig.Email,
ServerAddress: dockerAuthConfig.ServerAddress,
IdentityToken: dockerAuthConfig.IdentityToken,
RegistryToken: dockerAuthConfig.RegistryToken,
}
if authIsEmpty(auth) {
return nil, nil