From 26eea6eab26f0f9ec8cd6036534c8e49dc605209 Mon Sep 17 00:00:00 2001 From: Paul Bellamy Date: Thu, 27 Aug 2015 16:43:14 +0100 Subject: [PATCH] Works with boot2docker. The DOCKER_BRIDGE_IP is set on the remote host, so it will be found correctly on boot2docker. --- scope | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scope b/scope index 74da235e9..3aec62fc5 100755 --- a/scope +++ b/scope @@ -99,7 +99,7 @@ weave_dns_present() { } set_docker_bridge_ip() { - DOCKER_BRIDGE_IP=$(ip -4 addr show dev $DOCKER_BRIDGE | grep -m1 -o 'inet [.0-9]*') + DOCKER_BRIDGE_IP=$(docker run --rm --net=host --entrypoint /bin/sh $SCOPE_IMAGE -c "ip -f inet address show dev $DOCKER_BRIDGE" | grep -m1 -o 'inet \([.0-9]\)*') DOCKER_BRIDGE_IP=${DOCKER_BRIDGE_IP#inet } }