Collect existing weave addresses at start-up, to avoid a race when

doing it from the script

Note we need to run weaver in the host pid namespace, so it can search
for existing container IPs. Also now we are firing off sub-processes
it's better to not be PID 1 so Linux doesn't expect us to reap zombies.
This commit is contained in:
Bryan Boreham committed 2017-02-10 15:10:02 +00:00
1 parent f592e4b70a
commit 39ac1a0037
7 files changed
+96 -8

No files matched your search

+1
View File
@@ -1691,6 +1691,7 @@ launch_router() {
ROUTER_CONTAINER=$(docker run -d --name=$CONTAINER_NAME \
$(docker_run_options) \
$RESTART_POLICY \
--pid=host \
--volumes-from $DB_CONTAINER_NAME \
-v $RESOLV_CONF_DIR:/var/run/weave/etc \
-e WEAVE_PASSWORD \