docs/extend: fix broken link and some markdown touch-ups

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-05-28 17:28:43 +02:00
Родитель 590f3271ef
Коммит a968359e08
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 76698F39D527CE8C
2 изменённых файлов: 62 добавлений и 58 удалений

Просмотреть файл

@ -34,11 +34,11 @@ Config provides the base accessible fields for working with V0 plugin format
- **`description`** *string* - **`description`** *string*
description of the plugin description of the plugin
- **`documentation`** *string* - **`documentation`** *string*
link to the documentation about the plugin link to the documentation about the plugin
- **`interface`** *PluginInterface* - **`interface`** *PluginInterface*
@ -96,7 +96,7 @@ Config provides the base accessible fields for working with V0 plugin format
- **`name`** *string* - **`name`** *string*
name of the mount. name of the mount.
- **`description`** *string* - **`description`** *string*
@ -104,11 +104,11 @@ Config provides the base accessible fields for working with V0 plugin format
- **`source`** *string* - **`source`** *string*
source of the mount. source of the mount.
- **`destination`** *string* - **`destination`** *string*
destination of the mount. destination of the mount.
- **`type`** *string* - **`type`** *string*
@ -116,7 +116,7 @@ Config provides the base accessible fields for working with V0 plugin format
- **`options`** *string array* - **`options`** *string array*
options of the mount. options of the mount.
- **`ipchost`** *boolean* - **`ipchost`** *boolean*
Access to host ipc namespace. Access to host ipc namespace.
@ -135,7 +135,7 @@ Config provides the base accessible fields for working with V0 plugin format
- **`name`** *string* - **`name`** *string*
name of the env. name of the env.
- **`description`** *string* - **`description`** *string*
@ -143,7 +143,7 @@ Config provides the base accessible fields for working with V0 plugin format
- **`value`** *string* - **`value`** *string*
value of the env. value of the env.
- **`args`** *PluginArgs* - **`args`** *PluginArgs*
@ -151,7 +151,7 @@ Config provides the base accessible fields for working with V0 plugin format
- **`name`** *string* - **`name`** *string*
name of the args. name of the args.
- **`description`** *string* - **`description`** *string*
@ -159,7 +159,7 @@ Config provides the base accessible fields for working with V0 plugin format
- **`value`** *string array* - **`value`** *string array*
values of the args. values of the args.
- **`linux`** *PluginLinux* - **`linux`** *PluginLinux*
@ -169,7 +169,7 @@ Config provides the base accessible fields for working with V0 plugin format
- **`allowAllDevices`** *boolean* - **`allowAllDevices`** *boolean*
If `/dev` is bind mounted from the host, and allowAllDevices is set to true, the plugin will have `rwm` access to all devices on the host. If `/dev` is bind mounted from the host, and allowAllDevices is set to true, the plugin will have `rwm` access to all devices on the host.
- **`devices`** *PluginDevice array* - **`devices`** *PluginDevice array*
@ -177,7 +177,7 @@ Config provides the base accessible fields for working with V0 plugin format
- **`name`** *string* - **`name`** *string*
name of the device. name of the device.
- **`description`** *string* - **`description`** *string*
@ -193,45 +193,45 @@ Config provides the base accessible fields for working with V0 plugin format
```json ```json
{ {
"Args": { "Args": {
"Description": "", "Description": "",
"Name": "", "Name": "",
"Settable": null, "Settable": null,
"Value": null "Value": null
}, },
"Description": "A sample volume plugin for Docker", "Description": "A sample volume plugin for Docker",
"Documentation": "https://docs.docker.com/engine/extend/plugins/", "Documentation": "https://docs.docker.com/engine/extend/plugins/",
"Entrypoint": [ "Entrypoint": [
"/usr/bin/sample-volume-plugin", "/usr/bin/sample-volume-plugin",
"/data" "/data"
], ],
"Env": [ "Env": [
{ {
"Description": "", "Description": "",
"Name": "DEBUG", "Name": "DEBUG",
"Settable": [ "Settable": [
"value" "value"
], ],
"Value": "0" "Value": "0"
} }
], ],
"Interface": { "Interface": {
"Socket": "plugin.sock", "Socket": "plugin.sock",
"Types": [ "Types": [
"docker.volumedriver/1.0" "docker.volumedriver/1.0"
] ]
}, },
"Linux": { "Linux": {
"Capabilities": null, "Capabilities": null,
"AllowAllDevices": false, "AllowAllDevices": false,
"Devices": null "Devices": null
}, },
"Mounts": null, "Mounts": null,
"Network": { "Network": {
"Type": "" "Type": ""
}, },
"PropagatedMount": "/data", "PropagatedMount": "/data",
"User": {}, "User": {},
"Workdir": "" "Workdir": ""
} }
``` ```

Просмотреть файл

@ -42,14 +42,18 @@ Once running however, network driver plugins are used just like the built-in
network drivers: by being mentioned as a driver in network-oriented Docker network drivers: by being mentioned as a driver in network-oriented Docker
commands. For example, commands. For example,
$ docker network create --driver weave mynet ```bash
$ docker network create --driver weave mynet
```
Some network driver plugins are listed in [plugins](legacy_plugins.md) Some network driver plugins are listed in [plugins](legacy_plugins.md)
The `mynet` network is now owned by `weave`, so subsequent commands The `mynet` network is now owned by `weave`, so subsequent commands
referring to that network will be sent to the plugin, referring to that network will be sent to the plugin,
$ docker run --network=mynet busybox top ```bash
$ docker run --network=mynet busybox top
```
## Find network plugins ## Find network plugins
@ -61,8 +65,8 @@ or on the third party's site.
## Write a network plugin ## Write a network plugin
Network plugins implement the [Docker plugin Network plugins implement the [Docker plugin API](plugin_api.md) and the network
API](plugin_api.md) and the network plugin protocol plugin protocol
## Network plugin protocol ## Network plugin protocol
@ -74,5 +78,5 @@ documented as part of libnetwork:
To interact with the Docker maintainers and other interested users, see the IRC channel `#docker-network`. To interact with the Docker maintainers and other interested users, see the IRC channel `#docker-network`.
- [Docker networks feature overview](https://docs.docker.com/engine/userguide/networking/) - [Docker networks feature overview](https://docs.docker.com/engine/userguide/networking/)
- The [LibNetwork](https://github.com/docker/libnetwork) project - The [LibNetwork](https://github.com/docker/libnetwork) project