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: Ia114c6239dbac4b51d1b996b3f1ac48857769c17
  • Loading branch information
morambro authored and copybara-github committed Jul 26, 2023
1 parent 0b4bf6f commit 577582e
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 577582e

Please sign in to comment.