{"id":"7437eadfcac52ddc","repo":"docker/cli","slug":"docker-auth-config-does-not-support-more-than-one","errorCode":null,"errorMessage":"DOCKER_AUTH_CONFIG does not support more than one JSON object","messagePattern":"DOCKER_AUTH_CONFIG does not support more than one JSON object","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/config/configfile/file.go","lineNumber":361,"sourceCode":"\t\tmemorystore.WithFallbackStore(store),\n\t)\n\tif err != nil {\n\t\t_, _ = fmt.Fprintln(os.Stderr, \"Failed to create credential store from DOCKER_AUTH_CONFIG: \", err)\n\t\treturn store\n\t}\n\n\treturn envStore\n}\n\nfunc parseEnvConfig(v string) (map[string]types.AuthConfig, error) {\n\tenvConfig := &configEnv{}\n\tdecoder := json.NewDecoder(strings.NewReader(v))\n\tdecoder.DisallowUnknownFields()\n\tif err := decoder.Decode(envConfig); err != nil && !errors.Is(err, io.EOF) {\n\t\treturn nil, err\n\t}\n\tif decoder.More() {\n\t\treturn nil, errors.New(\"DOCKER_AUTH_CONFIG does not support more than one JSON object\")\n\t}\n\n\tauthConfigs := make(map[string]types.AuthConfig)\n\tfor addr, envAuth := range envConfig.AuthConfigs {\n\t\tif envAuth.Auth == \"\" {\n\t\t\treturn nil, fmt.Errorf(\"DOCKER_AUTH_CONFIG environment variable is missing key `auth` for %s\", addr)\n\t\t}\n\t\tusername, password, err := decodeAuth(envAuth.Auth)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tauthConfigs[addr] = types.AuthConfig{\n\t\t\tUsername:      username,\n\t\t\tPassword:      password,\n\t\t\tServerAddress: addr,\n\t\t}\n\t}\n\treturn authConfigs, nil","sourceCodeStart":343,"sourceCodeEnd":379,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/config/configfile/file.go#L343-L379","documentation":"Error \"DOCKER_AUTH_CONFIG does not support more than one JSON object\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/config/configfile/file.go:361 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}