github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/docs/reference/commandline/plugin_inspect.md (about) 1 --- 2 title: "plugin inspect" 3 description: "The plugin inspect command description and usage" 4 keywords: "plugin, inspect" 5 --- 6 7 <!-- This file is maintained within the docker/cli GitHub 8 repository at https://github.com/docker/cli/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # plugin inspect 17 18 ```markdown 19 Usage: docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...] 20 21 Display detailed information on one or more plugins 22 23 Options: 24 -f, --format string Format the output using the given Go template 25 --help Print usage 26 ``` 27 28 ## Description 29 30 Returns information about a plugin. By default, this command renders all results 31 in a JSON array. 32 33 ## Examples 34 35 36 ```none 37 $ docker plugin inspect tiborvass/sample-volume-plugin:latest 38 39 { 40 "Id": "8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21", 41 "Name": "tiborvass/sample-volume-plugin:latest", 42 "PluginReference": "tiborvas/sample-volume-plugin:latest", 43 "Enabled": true, 44 "Config": { 45 "Mounts": [ 46 { 47 "Name": "", 48 "Description": "", 49 "Settable": null, 50 "Source": "/data", 51 "Destination": "/data", 52 "Type": "bind", 53 "Options": [ 54 "shared", 55 "rbind" 56 ] 57 }, 58 { 59 "Name": "", 60 "Description": "", 61 "Settable": null, 62 "Source": null, 63 "Destination": "/foobar", 64 "Type": "tmpfs", 65 "Options": null 66 } 67 ], 68 "Env": [ 69 "DEBUG=1" 70 ], 71 "Args": null, 72 "Devices": null 73 }, 74 "Manifest": { 75 "ManifestVersion": "v0", 76 "Description": "A test plugin for Docker", 77 "Documentation": "https://docs.docker.com/engine/extend/plugins/", 78 "Interface": { 79 "Types": [ 80 "docker.volumedriver/1.0" 81 ], 82 "Socket": "plugins.sock" 83 }, 84 "Entrypoint": [ 85 "plugin-sample-volume-plugin", 86 "/data" 87 ], 88 "Workdir": "", 89 "User": { 90 }, 91 "Network": { 92 "Type": "host" 93 }, 94 "Capabilities": null, 95 "Mounts": [ 96 { 97 "Name": "", 98 "Description": "", 99 "Settable": null, 100 "Source": "/data", 101 "Destination": "/data", 102 "Type": "bind", 103 "Options": [ 104 "shared", 105 "rbind" 106 ] 107 }, 108 { 109 "Name": "", 110 "Description": "", 111 "Settable": null, 112 "Source": null, 113 "Destination": "/foobar", 114 "Type": "tmpfs", 115 "Options": null 116 } 117 ], 118 "Devices": [ 119 { 120 "Name": "device", 121 "Description": "a host device to mount", 122 "Settable": null, 123 "Path": "/dev/cpu_dma_latency" 124 } 125 ], 126 "Env": [ 127 { 128 "Name": "DEBUG", 129 "Description": "If set, prints debug messages", 130 "Settable": null, 131 "Value": "1" 132 } 133 ], 134 "Args": { 135 "Name": "args", 136 "Description": "command line arguments", 137 "Settable": null, 138 "Value": [ 139 140 ] 141 } 142 } 143 } 144 ``` 145 146 (output formatted for readability) 147 148 ### Formatting the output 149 150 ```bash 151 $ docker plugin inspect -f '{{.Id}}' tiborvass/sample-volume-plugin:latest 152 153 8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21 154 ``` 155 156 ## Related commands 157 158 * [plugin create](plugin_create.md) 159 * [plugin enable](plugin_enable.md) 160 * [plugin disable](plugin_disable.md) 161 * [plugin install](plugin_install.md) 162 * [plugin ls](plugin_ls.md) 163 * [plugin push](plugin_push.md) 164 * [plugin rm](plugin_rm.md) 165 * [plugin set](plugin_set.md) 166 * [plugin upgrade](plugin_upgrade.md)