update plugin example

Signed-off-by: Victor Vieux <victorvieux@gmail.com>

cleanup whitespace formatting

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit d73f73b365)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
Victor Vieux 2016-11-23 15:22:02 -08:00
parent 936499e1ff
commit 97b0fd9fe3

View file

@ -169,53 +169,50 @@ Config provides the base accessible fields for working with V0 plugin format
*Example showing the 'tiborvass/no-remove' plugin config.* *Example showing the 'tiborvass/no-remove' plugin config.*
``` ```json
{ {
"description": "A test plugin for Docker", "description": "A test plugin for Docker",
"documentation": "https://docs.docker.com/engine/extend/plugins/", "documentation": "https://docs.docker.com/engine/extend/plugins/",
"entrypoint": ["plugin-no-remove", "/data"], "entrypoint": ["plugin-no-remove", "/data"],
"interface" : { "interface": {
"types": ["docker.volumedriver/1.0"], "types": ["docker.volumedriver/1.0"],
"socket": "plugins.sock" "socket": "plugins.sock"
}, },
"network": { "network": {
"type": "host" "type": "host"
}, },
"mounts": [
"mounts": [ {
{ "source": "/data",
"source": "/data", "destination": "/data",
"destination": "/data", "type": "bind",
"type": "bind", "options": ["shared", "rbind"]
"options": ["shared", "rbind"] },
}, {
{ "destination": "/foobar",
"destination": "/foobar", "type": "tmpfs"
"type": "tmpfs" }
} ],
], "args": {
"name": "args",
"args": { "description": "command line arguments",
"name": "args", "value": []
"description": "command line arguments", },
"value": [] "env": [
}, {
"name": "DEBUG",
"env": [ "description": "If set, prints debug messages",
{ "value": "1"
"name": "DEBUG", }
"description": "If set, prints debug messages", ],
"value": "1" "linux": {
} "devices": [
], {
"name": "device",
"devices": [ "description": "a host device to mount",
{ "path": "/dev/cpu_dma_latency"
"name": "device", }
"description": "a host device to mount", ]
"path": "/dev/cpu_dma_latency" }
}
]
} }
``` ```