From b1f43f0d7c5e024026a1158b11db15e482313d8d Mon Sep 17 00:00:00 2001 From: Paul Bellamy Date: Wed, 17 Jun 2015 11:52:20 +0100 Subject: [PATCH] [proxy] Remove spurious output from proxy-(env|config) `docker log` outputs an error if stdout is closed before it is done, so silence that --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index 28e0ea0f..de98903e 100755 --- a/weave +++ b/weave @@ -892,7 +892,7 @@ proxy_args() { } proxy_addr() { - if addr=$(docker logs weaveproxy | head -n3 | grep -oE "proxy listening on .*"); then + if addr=$(docker logs $PROXY_CONTAINER_NAME 2>/dev/null | head -n3 | grep -oE "proxy listening on .*"); then addr=${addr##* } host=${addr%:*} [ "$host" = "0.0.0.0" ] && host=$PROXY_HOST