2016-11-09 20:49:09 -05:00
|
|
|
# plugin install
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
<!---MARKER_GEN_START-->
|
2016-07-07 14:43:18 -04:00
|
|
|
Install a plugin
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
### Options
|
|
|
|
|
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:--------------------------|:---------|:--------|:--------------------------------------------------|
|
|
|
|
| `--alias` | `string` | | Local name for plugin |
|
|
|
|
| `--disable` | | | Do not enable the plugin on install |
|
2024-02-21 03:51:39 -05:00
|
|
|
| `--disable-content-trust` | `bool` | `true` | Skip image verification |
|
2023-01-06 13:04:05 -05:00
|
|
|
| `--grant-all-permissions` | | | Grant all permissions necessary to run the plugin |
|
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Description
|
|
|
|
|
2016-06-09 17:57:15 -04: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
|
2016-09-14 13:18:09 -04:00
|
|
|
the registry. Note that the minimum required registry version to distribute
|
2023-12-13 18:06:16 -05:00
|
|
|
plugins is 2.3.0.
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Examples
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
The following example installs `vieus/sshfs` plugin and [sets](plugin_set.md) its
|
|
|
|
`DEBUG` environment variable to `1`. To install, `pull` the plugin from Docker
|
|
|
|
Hub and prompt the user to accept the list of privileges that the plugin needs,
|
|
|
|
set the plugin's parameters and enable the plugin.
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2016-12-14 03:35:34 -05:00
|
|
|
$ docker plugin install vieux/sshfs DEBUG=1
|
2016-07-20 17:37:55 -04:00
|
|
|
|
2016-12-14 03:35:34 -05:00
|
|
|
Plugin "vieux/sshfs" is requesting the following privileges:
|
2016-07-20 17:37:55 -04:00
|
|
|
- network: [host]
|
2016-12-14 03:35:34 -05:00
|
|
|
- device: [/dev/fuse]
|
|
|
|
- capabilities: [CAP_SYS_ADMIN]
|
2016-06-09 17:57:15 -04:00
|
|
|
Do you grant the above permissions? [y/N] y
|
2016-12-14 03:35:34 -05:00
|
|
|
vieux/sshfs
|
2016-06-09 17:57:15 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
After the plugin is installed, it appears in the list of plugins:
|
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2016-06-09 17:57:15 -04:00
|
|
|
$ docker plugin ls
|
2016-07-20 17:37:55 -04:00
|
|
|
|
2020-06-18 10:37:36 -04:00
|
|
|
ID NAME DESCRIPTION ENABLED
|
|
|
|
69553ca1d123 vieux/sshfs:latest sshFS plugin for Docker true
|
2016-06-09 17:57:15 -04:00
|
|
|
```
|
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Related commands
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2016-10-04 15:01:19 -04:00
|
|
|
* [plugin create](plugin_create.md)
|
2016-06-09 17:57:15 -04:00
|
|
|
* [plugin disable](plugin_disable.md)
|
2016-11-14 11:38:06 -05:00
|
|
|
* [plugin enable](plugin_enable.md)
|
2016-06-09 17:57:15 -04:00
|
|
|
* [plugin inspect](plugin_inspect.md)
|
2016-11-14 11:38:06 -05:00
|
|
|
* [plugin ls](plugin_ls.md)
|
|
|
|
* [plugin push](plugin_push.md)
|
2016-06-09 17:57:15 -04:00
|
|
|
* [plugin rm](plugin_rm.md)
|
2016-10-31 20:07:05 -04:00
|
|
|
* [plugin set](plugin_set.md)
|
2017-01-28 19:54:32 -05:00
|
|
|
* [plugin upgrade](plugin_upgrade.md)
|