2016-10-14 15:30:36 -07:00
|
|
|
---
|
|
|
|
title: "plugin inspect"
|
|
|
|
description: "The plugin inspect command description and usage"
|
|
|
|
keywords: ["plugin, inspect"]
|
|
|
|
advisory: "experimental"
|
|
|
|
---
|
2016-06-09 23:57:15 +02:00
|
|
|
|
|
|
|
# plugin inspect (experimental)
|
|
|
|
|
2016-07-07 20:43:18 +02:00
|
|
|
```markdown
|
2016-08-31 14:42:52 +08:00
|
|
|
Usage: docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]
|
2016-06-09 23:57:15 +02:00
|
|
|
|
2016-08-31 14:42:52 +08:00
|
|
|
Display detailed information on one or more plugins
|
2016-06-09 23:57:15 +02:00
|
|
|
|
2016-07-07 20:43:18 +02:00
|
|
|
Options:
|
2016-10-18 18:50:11 +08:00
|
|
|
-f, --format string Format the output using the given Go template
|
2016-08-17 04:52:27 -07:00
|
|
|
--help Print usage
|
2016-07-07 20:43:18 +02:00
|
|
|
```
|
2016-06-09 23:57:15 +02:00
|
|
|
|
|
|
|
Returns information about a plugin. By default, this command renders all results
|
|
|
|
in a JSON array.
|
|
|
|
|
|
|
|
Example output:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker plugin inspect tiborvass/no-remove:latest
|
|
|
|
```
|
|
|
|
```JSON
|
|
|
|
{
|
2016-07-20 23:37:55 +02:00
|
|
|
"Id": "8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21",
|
|
|
|
"Name": "tiborvass/no-remove",
|
|
|
|
"Tag": "latest",
|
2016-08-04 16:19:46 -07:00
|
|
|
"Enabled": true,
|
2016-07-20 23:37:55 +02:00
|
|
|
"Config": {
|
|
|
|
"Mounts": [
|
|
|
|
{
|
|
|
|
"Name": "",
|
|
|
|
"Description": "",
|
|
|
|
"Settable": null,
|
|
|
|
"Source": "/data",
|
|
|
|
"Destination": "/data",
|
|
|
|
"Type": "bind",
|
|
|
|
"Options": [
|
|
|
|
"shared",
|
|
|
|
"rbind"
|
2016-06-09 23:57:15 +02:00
|
|
|
]
|
2016-07-20 23:37:55 +02: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 23:57:15 +02:00
|
|
|
},
|
2016-07-20 23:37:55 +02:00
|
|
|
"Entrypoint": [
|
|
|
|
"plugin-no-remove",
|
|
|
|
"/data"
|
|
|
|
],
|
|
|
|
"Workdir": "",
|
|
|
|
"User": {
|
2016-06-09 23:57:15 +02:00
|
|
|
},
|
2016-07-20 23:37:55 +02: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 23:57:15 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
(output formatted for readability)
|
|
|
|
|
|
|
|
|
2016-08-17 04:52:27 -07:00
|
|
|
```bash
|
|
|
|
$ docker plugin inspect -f '{{.Id}}' tiborvass/no-remove:latest
|
|
|
|
```
|
|
|
|
```
|
|
|
|
8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21
|
|
|
|
```
|
|
|
|
|
2016-06-09 23:57:15 +02:00
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [plugin ls](plugin_ls.md)
|
|
|
|
* [plugin enable](plugin_enable.md)
|
|
|
|
* [plugin disable](plugin_disable.md)
|
|
|
|
* [plugin install](plugin_install.md)
|
|
|
|
* [plugin rm](plugin_rm.md)
|