We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db28410 commit 1aeec53Copy full SHA for 1aeec53
1 file changed
cli/config/configfile/file.go
@@ -272,7 +272,7 @@ func (configFile *ConfigFile) GetCredentialsStore(registryHostname string) crede
272
// if DOCKER_AUTH_CONFIG is set, we need to use the env store instead
273
// it falls back to native or file store if a value is not found
274
// in the environment
275
- if v, ok := os.LookupEnv("DOCKER_AUTH_CONFIG"); ok && v != "" {
+ if v := os.Getenv("DOCKER_AUTH_CONFIG"); v != "" {
276
envConfig := &ConfigFile{
277
AuthConfigs: make(map[string]types.AuthConfig),
278
}
0 commit comments