2016-10-14 18:30:36 -04:00
|
|
|
---
|
|
|
|
title: "plugin inspect"
|
|
|
|
description: "The plugin inspect command description and usage"
|
2016-11-03 18:48:30 -04:00
|
|
|
keywords: "plugin, inspect"
|
2016-10-14 18:30:36 -04:00
|
|
|
---
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2016-11-09 20:49:09 -05:00
|
|
|
# plugin inspect
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2016-07-07 14:43:18 -04:00
|
|
|
```markdown
|
2020-10-02 09:51:01 -04:00
|
|
|
Usage: docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2016-08-31 02:42:52 -04:00
|
|
|
Display detailed information on one or more plugins
|
2016-06-09 17:57:15 -04:00
|
|
|
|
2016-07-07 14:43:18 -04:00
|
|
|
Options:
|
2016-11-23 23:04:44 -05:00
|
|
|
-f, --format string Format the output using the given Go template
|
|
|
|
--help Print usage
|
2016-07-07 14:43:18 -04:00
|
|
|
```
|
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
|
|
|
|
2022-03-30 09:05:29 -04: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)
|