run-ci: remove --network=host
There shouldn't be any reason to expose the Docker container
directly on the host network. The default in Docker is 'bridge'.
This was originally introduced in a commit that added CMake support
back in 2017 but with no explanation. Removing it now...
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I6f7f218cd23b86d62efdadafa8e75c8a8615b4da
diff --git a/run-unit-test-docker.sh b/run-unit-test-docker.sh
index bf4da50..cfb30c1 100755
--- a/run-unit-test-docker.sh
+++ b/run-unit-test-docker.sh
@@ -104,7 +104,6 @@
# Run the docker unit test container with the unit test execution script
echo "Executing docker image"
docker run --cap-add=sys_admin --rm=true \
- --network host \
--privileged=true \
-u "$USER" \
-w "${DOCKER_WORKDIR}" -v "${WORKSPACE}":"${DOCKER_WORKDIR}" \