{"id":"1c1b60468527e840","repo":"docker/cli","slug":"invalid-interpolation-format-for-s-v-you-may","errorCode":null,"errorMessage":"invalid interpolation format for %s: %#v; you may need to escape any $ with another $","messagePattern":"invalid interpolation format for (.+?): %#v; you may need to escape any \\$ with another \\$","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/compose/interpolation/interpolation.go","lineNumber":107,"sourceCode":"\t\t\tinterpolatedElem, err := recursiveInterpolate(elem, path.Next(PathMatchList), opts)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\tout[i] = interpolatedElem\n\t\t}\n\t\treturn out, nil\n\n\tdefault:\n\t\treturn value, nil\n\t}\n}\n\nfunc newPathError(path Path, err error) error {\n\tswitch err := err.(type) {\n\tcase nil:\n\t\treturn nil\n\tcase *template.InvalidTemplateError:\n\t\treturn fmt.Errorf(\n\t\t\t\"invalid interpolation format for %s: %#v; you may need to escape any $ with another $\",\n\t\t\tpath, err.Template)\n\tdefault:\n\t\treturn fmt.Errorf(\"error while interpolating %s: %w\", path, err)\n\t}\n}\n\nconst pathSeparator = \".\"\n\n// PathMatchAll is a token used as part of a Path to match any key at that level\n// in the nested structure\nconst PathMatchAll = \"*\"\n\n// PathMatchList is a token used as part of a Path to match items in a list\nconst PathMatchList = \"[]\"\n\n// Path is a dotted path of keys to a value in a nested mapping structure. A *\n// section in a path will match any key in the mapping structure.","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/compose/interpolation/interpolation.go#L89-L125","documentation":"Error \"invalid interpolation format for %s: %#v; you may need to escape any $ with another $\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/compose/interpolation/interpolation.go:107 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}