- updated the default value for `--limit` on `docker search` as the const has been removed (added a todo to remove it) - updated some fixtures to account for `KernelMemoryTCP` no longer being included in the output. full diff: https://github.com/docker/docker/compare/83b51522df43866e39f7c757a6ab84ef4050eeb3...8941dcfcc5db4aefc351cd5b5bb4d524823035c0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
21 lines
454 B
Go
21 lines
454 B
Go
package client // import "github.com/docker/docker/client"
|
|
|
|
import (
|
|
"context"
|
|
"net/url"
|
|
|
|
"github.com/docker/docker/api/types"
|
|
)
|
|
|
|
// PluginRemove removes a plugin
|
|
func (cli *Client) PluginRemove(ctx context.Context, name string, options types.PluginRemoveOptions) error {
|
|
query := url.Values{}
|
|
if options.Force {
|
|
query.Set("force", "1")
|
|
}
|
|
|
|
resp, err := cli.delete(ctx, "/plugins/"+name, query, nil)
|
|
defer ensureReaderClosed(resp)
|
|
return err
|
|
}
|