Docker 17
引擎: CLI | Engine: CLI

docker plugin inspect

docker插件检查

描述

显示一个或多个插件的详细信息

用法

docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]

选项

名称,简写默认描述
--format, -f使用给定的Go模板格式化输出

父命令

命令描述
docker插件管理插件

相关命令

命令描述
docker plugin create从rootfs和配置创建一个插件。插件数据目录必须包含config.json和rootfs目录。
docker plugin disable禁用插件
docker plugin enable启用插件
docker plugin inspect显示一个或多个插件的详细信息
docker plugin install安装一个插件
docker plugin ls列出插件
docker plugin push将插件推送到注册表
docker plugin rm删除一个或多个插件
docker plugin set更改插件的设置
docker plugin upgrade升级现有的插件

扩展描述

返回关于插件的信息。默认情况下,该命令将所有结果呈现在JSON数组中。

实例

$ docker plugin inspect tiborvass/sample-volume-plugin:latest { "Id": "8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21", "Name": "tiborvass/sample-volume-plugin:latest", "PluginReference": "tiborvas/sample-volume-plugin:latest", "Enabled": true, "Config": { "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 } ], "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" }, "Entrypoint": [ "plugin-sample-volume-plugin", "/data" ], "Workdir": "", "User": { }, "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": [ ] } } }

(输出格式为了便于阅读)

格式化输出

$ docker plugin inspect -f '{{.Id}}' tiborvass/sample-volume-plugin:latest 8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21