"docker.sock" is used to access Docker API which is required to: 1. subscribe to Docker events to configure-arp, 2. query Docker network info to detect whether multicast should be enabled. 3. get list of Swarm peers before starting the plugin. (1) is currently not implemented. (2) is replaced by WEAVE_MULTICAST env var which can enable multicast for all Weave networks created by the plugin (not ideal, but better than nothing). (3) is fixed by not removing "restart.sentinel".
84 lines
1.5 KiB
JSON
84 lines
1.5 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": ""
|
|
},
|
|
{
|
|
"description": "Enable multicast for all Weave networks",
|
|
"name": "WEAVE_MULTICAST",
|
|
"settable": [
|
|
"value"
|
|
],
|
|
"value": ""
|
|
}
|
|
],
|
|
"network": {
|
|
"type": "host"
|
|
},
|
|
"workdir": ""
|
|
}
|