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: Id64ec1a2318718d3c9dbf9827eade6f4336489eb
  • Loading branch information
morambro authored and copybara-github committed Jul 26, 2023
1 parent 2b2a1b2 commit b269231
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 b269231

Please sign in to comment.