2016-10-14 18:30:36 -04:00
|
|
|
---
|
|
|
|
title: "plugin install"
|
|
|
|
description: "the plugin install command description and usage"
|
2016-11-03 18:48:30 -04:00
|
|
|
keywords: "plugin, install"
|
2016-10-14 18:30:36 -04:00
|
|
|
---
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2016-10-19 13:25:45 -04:00
|
|
|
<!-- This file is maintained within the docker/docker Github
|
|
|
|
repository at https://github.com/docker/docker/. Make all
|
|
|
|
pull requests against that repo. If you see this file in
|
|
|
|
another repository, consider it read-only there, as it will
|
|
|
|
periodically be overwritten by the definitive file. Pull
|
|
|
|
requests which include edits to this file in other repositories
|
|
|
|
will be rejected.
|
|
|
|
-->
|
|
|
|
|
2016-11-09 20:49:09 -05:00
|
|
|
# plugin install
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2016-07-07 14:43:18 -04:00
|
|
|
```markdown
|
2016-11-07 20:43:11 -05:00
|
|
|
Usage: docker plugin install [OPTIONS] PLUGIN [KEY=VALUE...]
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2016-07-07 14:43:18 -04:00
|
|
|
Install a plugin
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2016-07-07 14:43:18 -04:00
|
|
|
Options:
|
2016-12-12 18:05:53 -05:00
|
|
|
--alias string Local name for plugin
|
2016-08-30 06:45:06 -04:00
|
|
|
--disable Do not enable the plugin on install
|
|
|
|
--grant-all-permissions Grant all permissions necessary to run the plugin
|
2016-07-07 14:43:18 -04:00
|
|
|
--help Print usage
|
|
|
|
```
|
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
|
|
|
|
plugins is 2.3.0
|
2016-06-09 17:57:15 -04:00
|
|
|
|
|
|
|
|
2016-11-07 20:43:11 -05:00
|
|
|
The following example installs `no-remove` plugin and [set](plugin_set.md) it's env variable
|
|
|
|
`DEBUG` to 1. Install consists of pulling the plugin from Docker Hub, prompting
|
|
|
|
the user to accept the list of privileges that the plugin needs, settings parameters
|
|
|
|
and enabling the plugin.
|
2016-06-09 17:57:15 -04:00
|
|
|
|
|
|
|
```bash
|
2016-11-07 20:43:11 -05:00
|
|
|
$ docker plugin install tiborvass/no-remove DEBUG=1
|
2016-07-20 17:37:55 -04:00
|
|
|
|
|
|
|
Plugin "tiborvass/no-remove" is requesting the following privileges:
|
|
|
|
- network: [host]
|
|
|
|
- mount: [/data]
|
|
|
|
- device: [/dev/cpu_dma_latency]
|
2016-06-09 17:57:15 -04:00
|
|
|
Do you grant the above permissions? [y/N] y
|
2016-07-20 17:37:55 -04:00
|
|
|
tiborvass/no-remove
|
2016-06-09 17:57:15 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
After the plugin is installed, it appears in the list of plugins:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker plugin ls
|
2016-07-20 17:37:55 -04:00
|
|
|
|
2016-08-04 19:19:46 -04:00
|
|
|
NAME TAG DESCRIPTION ENABLED
|
2016-08-09 18:44:54 -04:00
|
|
|
tiborvass/no-remove latest A test plugin for Docker true
|
2016-06-09 17:57:15 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
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)
|