{"id":"d0252b083e3e3bca","repo":"docker/cli","slug":"s-is-a-manifest-list","errorCode":null,"errorMessage":"%s is a manifest list","messagePattern":"(.+?) is a manifest list","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/registryclient/fetcher.go","lineNumber":39,"sourceCode":"\t\"github.com/sirupsen/logrus\"\n)\n\n// fetchManifest pulls a manifest from a registry and returns it. An error\n// is returned if no manifest is found matching namedRef.\nfunc fetchManifest(ctx context.Context, repo distribution.Repository, ref reference.Named) (types.ImageManifest, error) {\n\tmanifest, err := getManifest(ctx, repo, ref)\n\tif err != nil {\n\t\treturn types.ImageManifest{}, err\n\t}\n\n\tswitch v := manifest.(type) {\n\t// Removed Schema 1 support\n\tcase *schema2.DeserializedManifest:\n\t\treturn pullManifestSchemaV2(ctx, ref, repo, *v)\n\tcase *ocischema.DeserializedManifest:\n\t\treturn pullManifestOCISchema(ctx, ref, repo, *v)\n\tcase *manifestlist.DeserializedManifestList:\n\t\treturn types.ImageManifest{}, fmt.Errorf(\"%s is a manifest list\", ref)\n\t}\n\treturn types.ImageManifest{}, fmt.Errorf(\"%s is not a manifest\", ref)\n}\n\nfunc fetchList(ctx context.Context, repo distribution.Repository, ref reference.Named) ([]types.ImageManifest, error) {\n\tmanifest, err := getManifest(ctx, repo, ref)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tswitch v := manifest.(type) {\n\tcase *manifestlist.DeserializedManifestList:\n\t\treturn pullManifestList(ctx, ref, repo, *v)\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"unsupported manifest format: %v\", v)\n\t}\n}\n","sourceCodeStart":21,"sourceCodeEnd":57,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/internal/registryclient/fetcher.go#L21-L57","documentation":"Error \"%s is a manifest list\" thrown in docker/cli.","triggerScenarios":"Thrown at internal/registryclient/fetcher.go:39 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}