2016-06-09 21:57:15 +00:00
|
|
|
<!--[metadata]>
|
|
|
|
+++
|
|
|
|
title = "plugin install"
|
|
|
|
description = "the plugin install command description and usage"
|
|
|
|
keywords = ["plugin, install"]
|
2016-06-16 18:52:34 +00:00
|
|
|
advisory = "experimental"
|
2016-06-09 21:57:15 +00:00
|
|
|
[menu.main]
|
|
|
|
parent = "smn_cli"
|
|
|
|
+++
|
|
|
|
<![end-metadata]-->
|
|
|
|
|
|
|
|
# plugin install (experimental)
|
|
|
|
|
2016-07-07 18:43:18 +00:00
|
|
|
```markdown
|
2016-07-20 21:37:55 +00:00
|
|
|
Usage: docker plugin install [OPTIONS] PLUGIN
|
2016-06-09 21:57:15 +00:00
|
|
|
|
2016-07-07 18:43:18 +00:00
|
|
|
Install a plugin
|
2016-06-09 21:57:15 +00:00
|
|
|
|
2016-07-07 18:43:18 +00:00
|
|
|
Options:
|
2016-08-30 10:45:06 +00:00
|
|
|
--disable Do not enable the plugin on install
|
|
|
|
--grant-all-permissions Grant all permissions necessary to run the plugin
|
2016-07-07 18:43:18 +00:00
|
|
|
--help Print usage
|
|
|
|
```
|
2016-06-09 21:57:15 +00:00
|
|
|
|
|
|
|
Installs and enables a plugin. Docker looks first for the plugin on your Docker
|
|
|
|
host. If the plugin does not exist locally, then the plugin is pulled from
|
|
|
|
Docker Hub.
|
|
|
|
|
|
|
|
|
|
|
|
The following example installs `no-remove` plugin. Install consists of pulling the
|
|
|
|
plugin from Docker Hub, prompting the user to accept the list of privileges that
|
|
|
|
the plugin needs and enabling the plugin.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker plugin install tiborvass/no-remove
|
2016-07-20 21:37:55 +00:00
|
|
|
|
|
|
|
Plugin "tiborvass/no-remove" is requesting the following privileges:
|
|
|
|
- network: [host]
|
|
|
|
- mount: [/data]
|
|
|
|
- device: [/dev/cpu_dma_latency]
|
2016-06-09 21:57:15 +00:00
|
|
|
Do you grant the above permissions? [y/N] y
|
2016-07-20 21:37:55 +00:00
|
|
|
tiborvass/no-remove
|
2016-06-09 21:57:15 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
After the plugin is installed, it appears in the list of plugins:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker plugin ls
|
2016-07-20 21:37:55 +00:00
|
|
|
|
2016-08-04 23:19:46 +00:00
|
|
|
NAME TAG DESCRIPTION ENABLED
|
2016-08-09 22:44:54 +00:00
|
|
|
tiborvass/no-remove latest A test plugin for Docker true
|
2016-06-09 21:57:15 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [plugin ls](plugin_ls.md)
|
|
|
|
* [plugin enable](plugin_enable.md)
|
|
|
|
* [plugin disable](plugin_disable.md)
|
|
|
|
* [plugin inspect](plugin_inspect.md)
|
|
|
|
* [plugin rm](plugin_rm.md)
|