2016-11-09 20:49:09 -05:00
# plugin inspect
2016-06-09 17:57:15 -04:00
2023-01-06 13:04:05 -05:00
<!-- - MARKER_GEN_START -->
2016-08-31 02:42:52 -04:00
Display detailed information on one or more plugins
2016-06-09 17:57:15 -04:00
2023-01-06 13:04:05 -05:00
### Options
| Name | Type | Default | Description |
|:---------------------------------------|:---------|:--------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [`-f` ](#format ), [`--format` ](#format ) | `string` | | Format output using a custom template:< br > 'json': Print in JSON format< br > 'TEMPLATE': Print output using the given Go template.< br > Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates |
<!-- - 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
Returns information about a plugin. By default, this command renders all results
in a JSON array.
2017-02-07 18:42:48 -05:00
## Examples
2016-06-09 17:57:15 -04:00
2020-04-19 09:43:08 -04:00
### Inspect a plugin
2017-02-07 18:42:48 -05:00
2020-04-19 09:43:08 -04:00
The following example example inspects the `tiborvass/sample-volume-plugin` plugin:
2021-08-21 08:54:14 -04:00
```console
2016-12-14 03:35:34 -05:00
$ docker plugin inspect tiborvass/sample-volume-plugin:latest
2020-04-19 09:43:08 -04:00
```
Output is in JSON format (output below is formatted for readability):
2017-02-07 18:42:48 -05:00
2020-04-19 09:43:08 -04:00
```json
2016-06-09 17:57:15 -04:00
{
2016-07-20 17:37:55 -04:00
"Id": "8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21",
2016-12-14 03:35:34 -05:00
"Name": "tiborvass/sample-volume-plugin:latest",
2017-01-28 19:54:32 -05:00
"PluginReference": "tiborvas/sample-volume-plugin:latest",
2016-08-04 19:19:46 -04:00
"Enabled": true,
2016-07-20 17:37:55 -04:00
"Config": {
"Mounts": [
{
"Name": "",
"Description": "",
"Settable": null,
"Source": "/data",
"Destination": "/data",
"Type": "bind",
"Options": [
"shared",
"rbind"
2016-06-09 17:57:15 -04:00
]
2016-07-20 17:37:55 -04:00
},
{
"Name": "",
"Description": "",
"Settable": null,
"Source": null,
"Destination": "/foobar",
"Type": "tmpfs",
"Options": null
}
],
"Env": [
"DEBUG=1"
],
"Args": null,
"Devices": null
},
"Manifest": {
"ManifestVersion": "v0",
"Description": "A test plugin for Docker",
"Documentation": "https://docs.docker.com/engine/extend/plugins/",
"Interface": {
"Types": [
"docker.volumedriver/1.0"
],
"Socket": "plugins.sock"
2016-06-09 17:57:15 -04:00
},
2016-07-20 17:37:55 -04:00
"Entrypoint": [
2016-12-14 03:35:34 -05:00
"plugin-sample-volume-plugin",
2016-07-20 17:37:55 -04:00
"/data"
],
"Workdir": "",
"User": {
2016-06-09 17:57:15 -04:00
},
2016-07-20 17:37:55 -04:00
"Network": {
"Type": "host"
},
"Capabilities": null,
"Mounts": [
{
"Name": "",
"Description": "",
"Settable": null,
"Source": "/data",
"Destination": "/data",
"Type": "bind",
"Options": [
"shared",
"rbind"
]
},
{
"Name": "",
"Description": "",
"Settable": null,
"Source": null,
"Destination": "/foobar",
"Type": "tmpfs",
"Options": null
}
],
"Devices": [
{
"Name": "device",
"Description": "a host device to mount",
"Settable": null,
"Path": "/dev/cpu_dma_latency"
}
],
"Env": [
{
"Name": "DEBUG",
"Description": "If set, prints debug messages",
"Settable": null,
"Value": "1"
}
],
"Args": {
"Name": "args",
"Description": "command line arguments",
"Settable": null,
"Value": [
]
}
}
2016-06-09 17:57:15 -04:00
}
```
2017-02-07 18:42:48 -05:00
2016-06-09 17:57:15 -04:00
2023-01-06 13:28:29 -05:00
### <a name="format"></a> Format the output (--format)
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 inspect -f '{{.Id}}' tiborvass/sample-volume-plugin:latest
2017-02-07 18:42:48 -05:00
2016-08-17 07:52:27 -04:00
8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21
```
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 enable ](plugin_enable.md )
* [plugin disable ](plugin_disable.md )
* [plugin install ](plugin_install.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 )