{"id":"f65d119dc7944850","repo":"docker/cli","slug":"invalid-name-s","errorCode":null,"errorMessage":"invalid name: %s","messagePattern":"invalid name: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/plugin/install.go","lineNumber":87,"sourceCode":"\t\tRegistryAuth:          encodedAuth,\n\t\tRemoteRef:             ref.String(),\n\t\tDisabled:              opts.disable,\n\t\tAcceptAllPermissions:  opts.grantPerms,\n\t\tAcceptPermissionsFunc: acceptPrivileges(dockerCLI, opts.remote),\n\t\tPrivilegeFunc:         nil,\n\t\tArgs:                  opts.args,\n\t}, nil\n}\n\nfunc runInstall(ctx context.Context, dockerCLI command.Cli, opts pluginOptions) error {\n\tvar localName string\n\tif opts.localName != \"\" {\n\t\taref, err := reference.ParseNormalizedNamed(opts.localName)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif _, ok := aref.(reference.Canonical); ok {\n\t\t\treturn fmt.Errorf(\"invalid name: %s\", opts.localName)\n\t\t}\n\t\tlocalName = reference.FamiliarString(reference.TagNameOnly(aref))\n\t}\n\n\toptions, err := buildPullConfig(dockerCLI, opts)\n\tif err != nil {\n\t\treturn err\n\t}\n\tresponseBody, err := dockerCLI.Client().PluginInstall(ctx, localName, options)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer func() {\n\t\t_ = responseBody.Close()\n\t}()\n\tif err := jsonstream.Display(ctx, responseBody, dockerCLI.Out()); err != nil {\n\t\treturn err\n\t}","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/plugin/install.go#L69-L105","documentation":"Error \"invalid name: %s\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/plugin/install.go:87 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}