{"id":"433847cb71125d69","repo":"docker/cli","slug":"error-parsing-remote-upgrade-image-reference-w","errorCode":null,"errorMessage":"error parsing remote upgrade image reference: %w","messagePattern":"error parsing remote upgrade image reference: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/plugin/upgrade.go","lineNumber":60,"sourceCode":"}\n\nfunc runUpgrade(ctx context.Context, dockerCLI command.Cli, opts pluginOptions) error {\n\tres, err := dockerCLI.Client().PluginInspect(ctx, opts.localName, client.PluginInspectOptions{})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error reading plugin data: %w\", err)\n\t}\n\n\tif res.Plugin.Enabled {\n\t\treturn errors.New(\"the plugin must be disabled before upgrading\")\n\t}\n\n\topts.localName = res.Plugin.Name\n\tif opts.remote == \"\" {\n\t\topts.remote = res.Plugin.PluginReference\n\t}\n\tremote, err := reference.ParseNormalizedNamed(opts.remote)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error parsing remote upgrade image reference: %w\", err)\n\t}\n\tremote = reference.TagNameOnly(remote)\n\n\told, err := reference.ParseNormalizedNamed(res.Plugin.PluginReference)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error parsing current image reference: %w\", err)\n\t}\n\told = reference.TagNameOnly(old)\n\n\t_, _ = fmt.Fprintf(dockerCLI.Out(), \"Upgrading plugin %s from %s to %s\\n\", res.Plugin.Name, reference.FamiliarString(old), reference.FamiliarString(remote))\n\tif !opts.skipRemoteCheck && remote.String() != old.String() {\n\t\tr, err := prompt.Confirm(ctx, dockerCLI.In(), dockerCLI.Out(), \"Plugin images do not match, are you sure?\")\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif !r {\n\t\t\treturn cancelledErr{errors.New(\"plugin upgrade has been cancelled\")}\n\t\t}","sourceCodeStart":42,"sourceCodeEnd":78,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/plugin/upgrade.go#L42-L78","documentation":"Error \"error parsing remote upgrade image reference: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/plugin/upgrade.go:60 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}