From e80c20cdfec6709daf21eef4b4100214ac8ffb22 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Thu, 5 Jul 2018 11:34:27 +0800 Subject: [PATCH] fix making building image issues Use "host" network mode instead of default "bridge" mode to access external network. Change-Id: I5735489c480c074a64cd72406592b758040e3be0 Signed-off-by: Yi Wang --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index cc03dfb5..06a18ed9 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ include .makeenv base-build: docker build \ --ulimit core=0 \ + --network host \ -t $(BASE_CONTAINER_TAG) \ -f $(BASE_DOCKERFILE) \ . @@ -38,6 +39,7 @@ build: --build-arg MYUID=$(UID) \ --build-arg MYUNAME=$(MYUNAME) \ --ulimit core=0 \ + --network host \ -t $(TC_CONTAINER_TAG) \ -f $(TC_DOCKERFILE) \ .