From b26923174c7785e9cd8005017996015f10ab7b55 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: Id64ec1a2318718d3c9dbf9827eade6f4336489eb --- 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