@@ -56,7 +56,7 @@ func newInstallCommand(dockerCli command.Cli) *cobra.Command {
5656 return cmd
5757}
5858
59- func buildPullConfig (ctx context.Context , dockerCli command.Cli , opts pluginOptions , cmdName string ) (types.PluginInstallOptions , error ) {
59+ func buildPullConfig (ctx context.Context , dockerCli command.Cli , opts pluginOptions ) (types.PluginInstallOptions , error ) {
6060 // Names with both tag and digest will be treated by the daemon
6161 // as a pull by digest with a local name for the tag
6262 // (if no local name is provided).
@@ -90,18 +90,13 @@ func buildPullConfig(ctx context.Context, dockerCli command.Cli, opts pluginOpti
9090 return types.PluginInstallOptions {}, err
9191 }
9292
93- var requestPrivilege registrytypes.RequestAuthConfig
94- if dockerCli .In ().IsTerminal () {
95- requestPrivilege = command .RegistryAuthenticationPrivilegedFunc (dockerCli , repoInfo .Index , cmdName )
96- }
97-
9893 options := types.PluginInstallOptions {
9994 RegistryAuth : encodedAuth ,
10095 RemoteRef : remote ,
10196 Disabled : opts .disable ,
10297 AcceptAllPermissions : opts .grantPerms ,
10398 AcceptPermissionsFunc : acceptPrivileges (dockerCli , opts .remote ),
104- PrivilegeFunc : requestPrivilege ,
99+ PrivilegeFunc : nil ,
105100 Args : opts .args ,
106101 }
107102 return options , nil
@@ -120,7 +115,7 @@ func runInstall(ctx context.Context, dockerCLI command.Cli, opts pluginOptions)
120115 localName = reference .FamiliarString (reference .TagNameOnly (aref ))
121116 }
122117
123- options , err := buildPullConfig (ctx , dockerCLI , opts , "plugin install" )
118+ options , err := buildPullConfig (ctx , dockerCLI , opts )
124119 if err != nil {
125120 return err
126121 }
0 commit comments