The vars can be customized before enabling the plugin with e.g.:
docker plugin set $PLUGIN_NAME set WEAVE_MTU=8160
The ARP settings apply to "weave" bridge. In order to manipulate them,
we bind mount the host's /proc to /host/proc.
(The mount type of /proc changed to bind, Otherwise (when type =
"proc"), the kernel does not propagate pids of host processes as the
plugin runs in a separate PID ns.)
Persistence relies on weave.db which is stored under
/var/lib/weave/weave.db on the host.
NOTE: we do not persist peer list for plugin-v2, as it gets
restored from existing alive master nodes during the peer discovery.
76 lines
1.4 KiB
JSON
76 lines
1.4 KiB
JSON
{
|
|
"description": "Weave Net plugin for Docker",
|
|
"documentation": "https://weave.works",
|
|
"entrypoint": [
|
|
"/home/weave/launch.sh"
|
|
],
|
|
"interface": {
|
|
"socket": "weave.sock",
|
|
"types": [
|
|
"docker.networkdriver/1.0"
|
|
]
|
|
},
|
|
"linux": {
|
|
"capabilities": [
|
|
"CAP_SYS_ADMIN",
|
|
"CAP_NET_ADMIN"
|
|
]
|
|
},
|
|
"mounts": [
|
|
{
|
|
"destination": "/host/proc/",
|
|
"type": "bind",
|
|
"source": "/proc/",
|
|
"options": ["rbind", "rw"]
|
|
},
|
|
{
|
|
"destination": "/var/run/docker.sock",
|
|
"source": "/var/run/docker.sock",
|
|
"type": "bind",
|
|
"options": ["rbind"]
|
|
},
|
|
{
|
|
"destination": "/host/var/lib/",
|
|
"source": "/var/lib/",
|
|
"type": "bind",
|
|
"options": ["rbind"]
|
|
},
|
|
{
|
|
"destination": "/host/etc/",
|
|
"source": "/etc/",
|
|
"type": "bind",
|
|
"options": ["rbind"]
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"description": "Extra args to `weaver` and `plugin`",
|
|
"name": "EXTRA_ARGS",
|
|
"settable": [
|
|
"value"
|
|
],
|
|
"value": ""
|
|
},
|
|
{
|
|
"description": "Encryption password",
|
|
"name": "WEAVE_PASSWORD",
|
|
"settable": [
|
|
"value"
|
|
],
|
|
"value": ""
|
|
},
|
|
{
|
|
"description": "MTU",
|
|
"name": "WEAVE_MTU",
|
|
"settable": [
|
|
"value"
|
|
],
|
|
"value": ""
|
|
}
|
|
],
|
|
"network": {
|
|
"type": "host"
|
|
},
|
|
"workdir": ""
|
|
}
|