docker/cli ยท error
config not found: %s
Error message
config not found: %s
What it means
Error "config not found: %s" thrown in docker/cli.
Source
Thrown at cli/command/service/parse.go:129
}
res, err := apiClient.ConfigList(ctx, client.ConfigListOptions{
Filters: args,
})
if err != nil {
return nil, err
}
foundConfigs := make(map[string]string)
for _, config := range res.Items {
foundConfigs[config.Spec.Annotations.Name] = config.ID
}
addedConfigs := make([]*swarm.ConfigReference, 0, len(configRefs))
for _, ref := range configRefs {
id, ok := foundConfigs[ref.ConfigName]
if !ok {
return nil, fmt.Errorf("config not found: %s", ref.ConfigName)
}
// set the id for the ref to properly assign in swarm
// since swarm needs the ID instead of the name
ref.ConfigID = id
addedConfigs = append(addedConfigs, ref)
}
// unfortunately, because the key of configRefs and runtimeRefs is different
// values that may collide, we can't just do some fancy trickery to
// concat maps, we need to do two separate loops
for _, ref := range runtimeRefs {
id, ok := foundConfigs[ref.ConfigName]
if !ok {
return nil, fmt.Errorf("config not found: %s", ref.ConfigName)
}
ref.ConfigID = idView on GitHub (pinned to e9452d6e78)
When it happens
Trigger: Thrown at cli/command/service/parse.go:129 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of docker/cli@e9452d6e78 (2026-08-01).
Data as JSON: /data/errors/b2ae10c4963b2294.json.
Report an issue: GitHub.