From 7b02365de87cdb9408b4924ffb61c2fd527e036c Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 9 Oct 2014 19:33:58 +0100 Subject: [PATCH] make dns resolution work in weave container by using go's internal DNS resolver. NB: this relies on go's std library having been compiled with the netgo build tag, e.g. sudo go install -tags netgo -a std issue #93 --- weaver/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weaver/Makefile b/weaver/Makefile index 772730c7..38898deb 100644 --- a/weaver/Makefile +++ b/weaver/Makefile @@ -6,8 +6,8 @@ SUDO=sudo all: docker-image weaver: ../*.go main.go - go get - go build -ldflags '-extldflags "-static"' + go get -tags netgo + go build -ldflags '-extldflags "-static"' -tags netgo .PHONY: docker-image docker-image: /var/tmp/weave.tar