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