{"record":{"id":"01e4e715fef21cc3","repo":"GoogleContainerTools/skaffold","slug":"retrieving-image-q-w","errorCode":null,"errorMessage":"retrieving image %q: %w","messagePattern":"retrieving image %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/skaffold/docker/parse.go","lineNumber":419,"sourceCode":"\t\t\t// Stage names are case insensitive\n\t\t\tonbuildNodesCache[strings.ToLower(from.as)] = nodes\n\t\t\tonbuildNodesCache[strings.ToLower(from.image)] = nodes\n\n\t\t\texpandedNodes = append(expandedNodes, onbuildNodes...)\n\t\t}\n\t}\n\texpandedNodes = append(expandedNodes, nodes[n:]...)\n\n\treturn expandedNodes, nil\n}\n\nfunc parseOnbuild(ctx context.Context, image string, cfg Config) ([]*parser.Node, error) {\n\tlog.Entry(context.TODO()).Tracef(\"Checking base image %s for ONBUILD triggers.\", image)\n\n\t// Image names are case SENSITIVE\n\timg, err := RetrieveImage(ctx, image, cfg)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"retrieving image %q: %w\", image, err)\n\t}\n\n\tif len(img.Config.OnBuild) == 0 {\n\t\treturn []*parser.Node{}, nil\n\t}\n\n\tlog.Entry(context.TODO()).Tracef(\"Found ONBUILD triggers %v in image %s\", img.Config.OnBuild, image)\n\n\tobRes, err := parser.Parse(strings.NewReader(strings.Join(img.Config.OnBuild, \"\\n\")))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn obRes.AST.Children, nil\n}\n\nfunc fromInstruction(node *parser.Node) from {\n\tvar as string","sourceCodeStart":401,"sourceCodeEnd":437,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/pkg/skaffold/docker/parse.go#L401-L437","documentation":"Fires in parseOnbuild when the base image named in a FROM instruction cannot be retrieved (from local docker daemon or remote registry) while checking it for ONBUILD triggers. Wraps the underlying retrieval error: image not found locally, registry auth failure, or network problem.","triggerScenarios":"Thrown at pkg/skaffold/docker/parse.go:419 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pull the base image locally: docker pull <image>","Check registry credentials (docker login) for private base images","Fix network/proxy issues blocking registry access"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a1189de023efc32d4b8e11f395acc678aa555011","analyzedAt":"2026-09-05T12:09:27.064Z","contentChangedAt":"2026-09-05T12:09:27.064Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}