diff --git a/cli-plugins/plugin/plugin.go b/cli-plugins/plugin/plugin.go index c72a68bb7e..c11780b081 100644 --- a/cli-plugins/plugin/plugin.go +++ b/cli-plugins/plugin/plugin.go @@ -77,7 +77,7 @@ func PersistentPreRunE(cmd *cobra.Command, args []string) error { } func newPluginCommand(dockerCli *command.DockerCli, plugin *cobra.Command, meta manager.Metadata) *cobra.Command { - name := plugin.Use + name := plugin.Name() fullname := manager.NamePrefix + name cmd := &cobra.Command{