From e4295a2da970f037e6fb39efd37dfafa9bf0984c Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 7 Jan 2016 14:32:52 +0000 Subject: [PATCH] don't attach rewrite_etc_hosts helper container to weave ...since that is a) inefficent and b) can block when IPAM hasn't had consensus. We can only end up in this situation when DOCKER_HOST is pointing at the weave proxy and we are running `weave run|attach` with `--local`. So it's very much an edge case. Fixes #1858. --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index f70ec5fa..c37f332d 100755 --- a/weave +++ b/weave @@ -1169,7 +1169,7 @@ rewrite_etc_hosts() { CONTENTS="$(etc_hosts_contents $FQDN "$@")" # rewrite /etc/hosts, unlinking the file (so Docker does not modify it again) but # leaving it with valid contents... - docker run --rm --net=none --privileged \ + docker run --rm --net=none -e WEAVE_CIDR=none --privileged \ -v $CONTAINERS_PATH:$MNT \ --entrypoint=sh \ $EXEC_IMAGE -c "echo '$CONTENTS' > $MNT_HOSTS && rm -f $MNT_HOSTS && echo '$CONTENTS' > $MNT_HOSTS"