mirror of https://github.com/docker/cli.git
support settings in docker plugins install
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
58c2d938dd
commit
3f7264473d
|
@ -45,9 +45,17 @@ func (cli *Client) PluginInstall(ctx context.Context, name string, options types
|
||||||
return pluginPermissionDenied{name}
|
return pluginPermissionDenied{name}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(options.Args) > 0 {
|
||||||
|
if err := cli.PluginSet(ctx, name, options.Args); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if options.Disabled {
|
if options.Disabled {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return cli.PluginEnable(ctx, name)
|
return cli.PluginEnable(ctx, name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue