{"id":"e8a1a02db3da0e71","repo":"docker/cli","slug":"error-parsing-name-for-manifest-list-s-w","errorCode":null,"errorMessage":"error parsing name for manifest list %s: %w","messagePattern":"error parsing name for manifest list (.+?): %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/manifest/create_list.go","lineNumber":42,"sourceCode":"\t\tShort: \"Create a local manifest list for annotating and pushing to a registry\",\n\t\tArgs:  cli.RequiresMinArgs(2),\n\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\treturn createManifestList(cmd.Context(), dockerCLI, args, opts)\n\t\t},\n\t\tDisableFlagsInUseLine: true,\n\t}\n\n\tflags := cmd.Flags()\n\tflags.BoolVar(&opts.insecure, \"insecure\", false, \"Allow communication with an insecure registry\")\n\tflags.BoolVarP(&opts.amend, \"amend\", \"a\", false, \"Amend an existing manifest list\")\n\treturn cmd\n}\n\nfunc createManifestList(ctx context.Context, dockerCLI command.Cli, args []string, opts createOpts) error {\n\tnewRef := args[0]\n\ttargetRef, err := normalizeReference(newRef)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error parsing name for manifest list %s: %w\", newRef, err)\n\t}\n\n\tmanifestStore := newManifestStore(dockerCLI)\n\t_, err = manifestStore.GetList(targetRef)\n\tswitch {\n\tcase errdefs.IsNotFound(err):\n\t\t// New manifest list\n\tcase err != nil:\n\t\treturn err\n\tcase !opts.amend:\n\t\treturn errors.New(\"refusing to amend an existing manifest list with no --amend flag\")\n\t}\n\n\t// Now create the local manifest list transaction by looking up the manifest schemas\n\t// for the constituent images:\n\tmanifests := args[1:]\n\tfor _, manifestRef := range manifests {\n\t\tnamedRef, err := normalizeReference(manifestRef)","sourceCodeStart":24,"sourceCodeEnd":60,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/manifest/create_list.go#L24-L60","documentation":"Error \"error parsing name for manifest list %s: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/manifest/create_list.go:42 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}