{"id":"b2ae10c4963b2294","repo":"docker/cli","slug":"config-not-found-s","errorCode":null,"errorMessage":"config not found: %s","messagePattern":"config not found: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/service/parse.go","lineNumber":129,"sourceCode":"\t}\n\n\tres, err := apiClient.ConfigList(ctx, client.ConfigListOptions{\n\t\tFilters: args,\n\t})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tfoundConfigs := make(map[string]string)\n\tfor _, config := range res.Items {\n\t\tfoundConfigs[config.Spec.Annotations.Name] = config.ID\n\t}\n\n\taddedConfigs := make([]*swarm.ConfigReference, 0, len(configRefs))\n\tfor _, ref := range configRefs {\n\t\tid, ok := foundConfigs[ref.ConfigName]\n\t\tif !ok {\n\t\t\treturn nil, fmt.Errorf(\"config not found: %s\", ref.ConfigName)\n\t\t}\n\n\t\t// set the id for the ref to properly assign in swarm\n\t\t// since swarm needs the ID instead of the name\n\t\tref.ConfigID = id\n\t\taddedConfigs = append(addedConfigs, ref)\n\t}\n\n\t// unfortunately, because the key of configRefs and runtimeRefs is different\n\t// values that may collide, we can't just do some fancy trickery to\n\t// concat maps, we need to do two separate loops\n\tfor _, ref := range runtimeRefs {\n\t\tid, ok := foundConfigs[ref.ConfigName]\n\t\tif !ok {\n\t\t\treturn nil, fmt.Errorf(\"config not found: %s\", ref.ConfigName)\n\t\t}\n\n\t\tref.ConfigID = id","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/service/parse.go#L111-L147","documentation":"Error \"config not found: %s\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/service/parse.go:129 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}