Signed-off-by: Victor Vieux <victorvieux@gmail.com>
cleanup whitespace formatting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -169,53 +169,50 @@ Config provides the base accessible fields for working with V0 plugin format |
| 169 | 169 |
|
| 170 | 170 |
*Example showing the 'tiborvass/no-remove' plugin config.* |
| 171 | 171 |
|
| 172 |
-``` |
|
| 172 |
+```json |
|
| 173 | 173 |
{
|
| 174 |
- "description": "A test plugin for Docker", |
|
| 175 |
- "documentation": "https://docs.docker.com/engine/extend/plugins/", |
|
| 176 |
- "entrypoint": ["plugin-no-remove", "/data"], |
|
| 177 |
- "interface" : {
|
|
| 178 |
- "types": ["docker.volumedriver/1.0"], |
|
| 179 |
- "socket": "plugins.sock" |
|
| 180 |
- }, |
|
| 181 |
- "network": {
|
|
| 182 |
- "type": "host" |
|
| 183 |
- }, |
|
| 184 |
- |
|
| 185 |
- "mounts": [ |
|
| 186 |
- {
|
|
| 187 |
- "source": "/data", |
|
| 188 |
- "destination": "/data", |
|
| 189 |
- "type": "bind", |
|
| 190 |
- "options": ["shared", "rbind"] |
|
| 191 |
- }, |
|
| 192 |
- {
|
|
| 193 |
- "destination": "/foobar", |
|
| 194 |
- "type": "tmpfs" |
|
| 195 |
- } |
|
| 196 |
- ], |
|
| 197 |
- |
|
| 198 |
- "args": {
|
|
| 199 |
- "name": "args", |
|
| 200 |
- "description": "command line arguments", |
|
| 201 |
- "value": [] |
|
| 202 |
- }, |
|
| 203 |
- |
|
| 204 |
- "env": [ |
|
| 205 |
- {
|
|
| 206 |
- "name": "DEBUG", |
|
| 207 |
- "description": "If set, prints debug messages", |
|
| 208 |
- "value": "1" |
|
| 209 |
- } |
|
| 210 |
- ], |
|
| 211 |
- |
|
| 212 |
- "devices": [ |
|
| 213 |
- {
|
|
| 214 |
- "name": "device", |
|
| 215 |
- "description": "a host device to mount", |
|
| 216 |
- "path": "/dev/cpu_dma_latency" |
|
| 217 |
- } |
|
| 218 |
- ] |
|
| 174 |
+ "description": "A test plugin for Docker", |
|
| 175 |
+ "documentation": "https://docs.docker.com/engine/extend/plugins/", |
|
| 176 |
+ "entrypoint": ["plugin-no-remove", "/data"], |
|
| 177 |
+ "interface": {
|
|
| 178 |
+ "types": ["docker.volumedriver/1.0"], |
|
| 179 |
+ "socket": "plugins.sock" |
|
| 180 |
+ }, |
|
| 181 |
+ "network": {
|
|
| 182 |
+ "type": "host" |
|
| 183 |
+ }, |
|
| 184 |
+ "mounts": [ |
|
| 185 |
+ {
|
|
| 186 |
+ "source": "/data", |
|
| 187 |
+ "destination": "/data", |
|
| 188 |
+ "type": "bind", |
|
| 189 |
+ "options": ["shared", "rbind"] |
|
| 190 |
+ }, |
|
| 191 |
+ {
|
|
| 192 |
+ "destination": "/foobar", |
|
| 193 |
+ "type": "tmpfs" |
|
| 194 |
+ } |
|
| 195 |
+ ], |
|
| 196 |
+ "args": {
|
|
| 197 |
+ "name": "args", |
|
| 198 |
+ "description": "command line arguments", |
|
| 199 |
+ "value": [] |
|
| 200 |
+ }, |
|
| 201 |
+ "env": [ |
|
| 202 |
+ {
|
|
| 203 |
+ "name": "DEBUG", |
|
| 204 |
+ "description": "If set, prints debug messages", |
|
| 205 |
+ "value": "1" |
|
| 206 |
+ } |
|
| 207 |
+ ], |
|
| 208 |
+ "linux": {
|
|
| 209 |
+ "devices": [ |
|
| 210 |
+ {
|
|
| 211 |
+ "name": "device", |
|
| 212 |
+ "description": "a host device to mount", |
|
| 213 |
+ "path": "/dev/cpu_dma_latency" |
|
| 214 |
+ } |
|
| 215 |
+ ] |
|
| 216 |
+ } |
|
| 219 | 217 |
} |
| 220 |
- |
|
| 221 | 218 |
``` |