Skip to content

Commit

Permalink
Use the host network mode when running commands in containers
Browse files Browse the repository at this point in the history
See https://docs.docker.com/network/drivers/host/.

PiperOrigin-RevId: 551128510
Change-Id: I14411d28b0a0ef2fa97816f34e8b352d814f48a0
  • Loading branch information
morambro authored and copybara-github committed Jul 26, 2023
1 parent feec8e5 commit 539893b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kokoro/testutils/run_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 539893b

Please sign in to comment.