utils/docker: use host's network setup
Our utils/docker-run wrapper is needed to provide a reproducible build environment: tools, variables, etc... but is not meant for isolation. As such, we do not care which network configuration is used. In some settings (e.g. enterprise networks), it is often the case that a VPN is in use, especially in those wonderful times of widespread remote work. Letting Docker decide on the network setup will most usually lead to it creating a private network that is NATed onto the principal network interface, leading to non-functional network in the container when a VPN is in use. As such, always use the host network configuration, and do not let Docker create a private network for the container. Signed-off-by: Yann E. MORIN <yann.morin@orange.com> Cc: Ricardo Martincoski <ricardo.martincoski@datacom.com.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
2a9b47a8db
commit
893bd56974
@ -21,6 +21,7 @@ declare -a docker_opts=(
|
||||
--user "$(id -u):$(id -g)"
|
||||
--workdir "$(pwd)"
|
||||
--security-opt label=disable
|
||||
--network host
|
||||
)
|
||||
|
||||
declare -a mountpoints=(
|
||||
|
Loading…
Reference in New Issue
Block a user