{"id":"f6fe23ec20005ca4","repo":"docker/cli","slug":"manifest-for-image-s-does-not-exist-in-s","errorCode":null,"errorMessage":"manifest for image %s does not exist in %s","messagePattern":"manifest for image (.+?) does not exist in (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/manifest/annotate.go","lineNumber":139,"sourceCode":"\n\treturn cmd\n}\n\nfunc runManifestAnnotate(dockerCLI command.Cli, opts annotateOptions) error {\n\ttargetRef, err := normalizeReference(opts.target)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"annotate: error parsing name for manifest list %s: %w\", opts.target, err)\n\t}\n\timgRef, err := normalizeReference(opts.image)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"annotate: error parsing name for manifest %s: %w\", opts.image, err)\n\t}\n\n\tmanifestStore := newManifestStore(dockerCLI)\n\timageManifest, err := manifestStore.Get(targetRef, imgRef)\n\tswitch {\n\tcase errdefs.IsNotFound(err):\n\t\treturn fmt.Errorf(\"manifest for image %s does not exist in %s\", opts.image, opts.target)\n\tcase err != nil:\n\t\treturn err\n\t}\n\n\t// Update the mf\n\tif imageManifest.Descriptor.Platform == nil {\n\t\timageManifest.Descriptor.Platform = new(ocispec.Platform)\n\t}\n\tif opts.os != \"\" {\n\t\timageManifest.Descriptor.Platform.OS = opts.os\n\t}\n\tif opts.arch != \"\" {\n\t\timageManifest.Descriptor.Platform.Architecture = opts.arch\n\t}\n\tfor _, osFeature := range opts.osFeatures {\n\t\timageManifest.Descriptor.Platform.OSFeatures = appendIfUnique(imageManifest.Descriptor.Platform.OSFeatures, osFeature)\n\t}\n\tif opts.variant != \"\" {","sourceCodeStart":121,"sourceCodeEnd":157,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/manifest/annotate.go#L121-L157","documentation":"Error \"manifest for image %s does not exist in %s\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/manifest/annotate.go:139 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}