2016-10-14 22:30:36 +00:00
|
|
|
---
|
|
|
|
title: "plugin inspect"
|
|
|
|
description: "The plugin inspect command description and usage"
|
2016-11-03 22:48:30 +00:00
|
|
|
keywords: "plugin, inspect"
|
2016-10-14 22:30:36 +00:00
|
|
|
---
|
2016-06-09 21:57:15 +00:00
|
|
|
|
2016-10-19 17:25:45 +00: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-10 01:49:09 +00:00
|
|
|
# plugin inspect
|
2016-06-09 21:57:15 +00:00
|
|
|
|
2016-07-07 18:43:18 +00:00
|
|
|
```markdown
|
2016-12-31 17:55:04 +00:00
|
|
|
Usage: docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]
|
2016-06-09 21:57:15 +00:00
|
|
|
|
2016-08-31 06:42:52 +00:00
|
|
|
Display detailed information on one or more plugins
|
2016-06-09 21:57:15 +00:00
|
|
|
|
2016-07-07 18:43:18 +00:00
|
|
|
Options:
|
2016-11-24 04:04:44 +00:00
|
|
|
-f, --format string Format the output using the given Go template
|
|
|
|
--help Print usage
|
2016-07-07 18:43:18 +00:00
|
|
|
```
|
2016-06-09 21:57:15 +00:00
|
|
|
|
2017-02-07 23:42:48 +00:00
|
|
|
## Description
|
|
|
|
|
2016-06-09 21:57:15 +00:00
|
|
|
Returns information about a plugin. By default, this command renders all results
|
|
|
|
in a JSON array.
|
|
|
|
|
2017-02-07 23:42:48 +00:00
|
|
|
## Examples
|
2016-06-09 21:57:15 +00:00
|
|
|
|
2017-02-07 23:42:48 +00:00
|
|
|
|
|
|
|
```none
|
2016-12-14 08:35:34 +00:00
|
|
|
$ docker plugin inspect tiborvass/sample-volume-plugin:latest
|
2017-02-07 23:42:48 +00:00
|
|
|
|
2016-06-09 21:57:15 +00:00
|
|
|
{
|
2016-07-20 21:37:55 +00:00
|
|
|
"Id": "8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21",
|
2016-12-14 08:35:34 +00:00
|
|
|
"Name": "tiborvass/sample-volume-plugin:latest",
|
2017-01-29 00:54:32 +00:00
|
|
|
"PluginReference": "tiborvas/sample-volume-plugin:latest",
|
2016-08-04 23:19:46 +00:00
|
|
|
"Enabled": true,
|
2016-07-20 21:37:55 +00:00
|
|
|
"Config": {
|
|
|
|
"Mounts": [
|
|
|
|
{
|
|
|
|
"Name": "",
|
|
|
|
"Description": "",
|
|
|
|
"Settable": null,
|
|
|
|
"Source": "/data",
|
|
|
|
"Destination": "/data",
|
|
|
|
"Type": "bind",
|
|
|
|
"Options": [
|
|
|
|
"shared",
|
|
|
|
"rbind"
|
2016-06-09 21:57:15 +00:00
|
|
|
]
|
2016-07-20 21:37:55 +00: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 21:57:15 +00:00
|
|
|
},
|
2016-07-20 21:37:55 +00:00
|
|
|
"Entrypoint": [
|
2016-12-14 08:35:34 +00:00
|
|
|
"plugin-sample-volume-plugin",
|
2016-07-20 21:37:55 +00:00
|
|
|
"/data"
|
|
|
|
],
|
|
|
|
"Workdir": "",
|
|
|
|
"User": {
|
2016-06-09 21:57:15 +00:00
|
|
|
},
|
2016-07-20 21:37:55 +00: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 21:57:15 +00:00
|
|
|
}
|
|
|
|
```
|
2017-02-07 23:42:48 +00:00
|
|
|
|
2016-06-09 21:57:15 +00:00
|
|
|
(output formatted for readability)
|
|
|
|
|
2017-02-07 23:42:48 +00:00
|
|
|
### Formatting the output
|
2016-06-09 21:57:15 +00:00
|
|
|
|
2016-08-17 11:52:27 +00:00
|
|
|
```bash
|
2016-12-14 08:35:34 +00:00
|
|
|
$ docker plugin inspect -f '{{.Id}}' tiborvass/sample-volume-plugin:latest
|
2017-02-07 23:42:48 +00:00
|
|
|
|
2016-08-17 11:52:27 +00:00
|
|
|
8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21
|
|
|
|
```
|
|
|
|
|
2017-02-07 23:42:48 +00:00
|
|
|
## Related commands
|
2016-06-09 21:57:15 +00:00
|
|
|
|
2016-10-04 19:01:19 +00:00
|
|
|
* [plugin create](plugin_create.md)
|
2016-06-09 21:57:15 +00:00
|
|
|
* [plugin enable](plugin_enable.md)
|
|
|
|
* [plugin disable](plugin_disable.md)
|
|
|
|
* [plugin install](plugin_install.md)
|
2016-11-14 16:38:06 +00:00
|
|
|
* [plugin ls](plugin_ls.md)
|
|
|
|
* [plugin push](plugin_push.md)
|
2016-06-09 21:57:15 +00:00
|
|
|
* [plugin rm](plugin_rm.md)
|
2016-11-01 00:07:05 +00:00
|
|
|
* [plugin set](plugin_set.md)
|
2017-01-29 00:54:32 +00:00
|
|
|
* [plugin upgrade](plugin_upgrade.md)
|