feat: added support for running the VPN router on a host with Docker Community Edition.
Release / release (push) Successful in 1m8s

This commit is contained in:
slawek committed 2026-10-23 13:17:32 +02:00
1 parent 66fcd69d40
commit 2e0cee10ac
10 files changed
+279 -1

No files matched your search

@@ -299,6 +299,16 @@ def run_platform_setup(cfg, ctx):
fail(f'platform module {module.__name__} failed: {exc}')
def refresh_docker_rules():
"""Apply the new settings to the Docker rules while Docker is running.
When Docker is not running, vpn-router-docker applies them after
docker.service starts.
"""
if unit_is_active('docker.service'):
run(['systemctl', 'restart', 'vpn-router-docker.service'], check=False)
def main():
cfg = vpnrouter.load_config()
ctx, changed = vpnrouter.configure(cfg)
@@ -337,6 +347,7 @@ def main():
run(['systemctl', 'restart', 'systemd-resolved'], check=False)
run_platform_setup(cfg, ctx)
refresh_docker_rules()
return 0