Pass in default subnet when creating 'weave' plugin network.

New behaviour in Docker 1.12 means it disregards a plugin-supplied
address pool that overlaps an existing route, which causes a hang as
noted in #2469. When we pass in the subnet, Docker believes we really
do want that address range and avoids the hang.
This commit is contained in:
Bryan Boreham committed 2016-09-06 12:05:51 +01:00
1 parent 3d12e8088e
commit ac4246e1f5
2 files changed
+10 -5

No files matched your search

+2 -1
View File
@@ -1782,7 +1782,8 @@ launch_plugin_if_not_running() {
return 1
fi
wait_for_status $PLUGIN_CONTAINER_NAME http_call_unix $PLUGIN_CONTAINER_NAME status.sock
util_op create-plugin-network weave weavemesh
WEAVE_IPAM_SUBNET=$(call_weave GET /ipinfo/defaultsubnet)
util_op create-plugin-network weave weavemesh $WEAVE_IPAM_SUBNET
}
plugin_disabled() {