From 7ff4649b3c61bbf70ea8d76b509a7ae620a45ac7 Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Mon, 13 Jul 2020 09:37:47 -0700 Subject: [PATCH] Use host networking for build container. This will allow the use of default credentials. PiperOrigin-RevId: 320972241 --- tools/bazel.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bazel.mk b/tools/bazel.mk index 9f4a40669..fa86bd8ec 100644 --- a/tools/bazel.mk +++ b/tools/bazel.mk @@ -70,6 +70,7 @@ bazel-server-start: load-default ## Starts the bazel server. -v "$(CURDIR):$(CURDIR)" \ --workdir "$(CURDIR)" \ --entrypoint "" \ + --network=host \ $(FULL_DOCKER_RUN_OPTIONS) \ gvisor.dev/images/default \ sh -c "groupadd --gid $(GID) --non-unique $(USER) && \