From 0c62b22c9c9e07edf9d63a750066451a879464eb Mon Sep 17 00:00:00 2001 From: Ryan Roberts Date: Fri, 30 May 2025 17:31:34 +0100 Subject: [PATCH] build, run: Use host network to avoid VPN issues There have been numerous reports of VPNs not playing nicely with the bridged docker network. Let's switch to using the host network to try to solve this. The host network is described as "Remove network isolation between the container and the Docker host". Essentially they are now the same network entity. Signed-off-by: Ryan Roberts --- shrinkwrap/utils/runtime.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shrinkwrap/utils/runtime.py b/shrinkwrap/utils/runtime.py index e8c5342..aed5cc8 100644 --- a/shrinkwrap/utils/runtime.py +++ b/shrinkwrap/utils/runtime.py @@ -35,6 +35,7 @@ class Runtime: self._rt = tuxmake.runtime.Runtime.get(name) self._rt.set_image(image) + self._rt.network = "host" is_mac = sys.platform.startswith('darwin') is_docker = name.startswith('docker') -- GitLab