Skip to content

Commit 92c7826

Browse files
authored
[CI] Fix build.sh to propagate --network=host to the docker build command (#5336)
* when passing --net=host to build.sh it needs to be also sent as --network=host to "docker build", so that both build and run will use the same network configuration
1 parent e7fcd9e commit 92c7826

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ fi
6060

6161
if [[ "$1" == "--net=host" ]]; then
6262
CI_DOCKER_EXTRA_PARAMS+=('--net=host')
63+
CI_DOCKER_BUILD_EXTRA_PARAMS+=("--network=host")
6364
shift 1
6465
fi
6566

0 commit comments

Comments
 (0)