From 577582e600d7877d8eb0a8fec80d99f43da039fd Mon Sep 17 00:00:00 2001 From: Moreno Ambrosin Date: Wed, 26 Jul 2023 01:36:31 -0700 Subject: [PATCH] Use the `host` network mode when running commands in containers See https://docs.docker.com/network/drivers/host/. PiperOrigin-RevId: 551128510 Change-Id: Ia114c6239dbac4b51d1b996b3f1ac48857769c17 --- kokoro/testutils/run_command.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/kokoro/testutils/run_command.sh b/kokoro/testutils/run_command.sh index 84c85cb..a7cf2a2 100755 --- a/kokoro/testutils/run_command.sh +++ b/kokoro/testutils/run_command.sh @@ -85,6 +85,7 @@ main() { time docker pull "${CONTAINER_IMAGE_NAME}" local docker_opts=( + --network="host" --mount type=bind,src="${path_to_mount}",dst=/deps --workdir=/deps/"${library_to_test}" --rm