From 7060a0ce2c47a586b58c9c8000418f746cda76fd Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Fri, 30 Aug 2024 21:57:02 +0500 Subject: [PATCH] Use address pool specified in docker config --- .../middlewared/etc_files/docker/daemon.json.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/middlewared/middlewared/etc_files/docker/daemon.json.py b/src/middlewared/middlewared/etc_files/docker/daemon.json.py index 3fb32af1aef2c..e4e2d920ff371 100644 --- a/src/middlewared/middlewared/etc_files/docker/daemon.json.py +++ b/src/middlewared/middlewared/etc_files/docker/daemon.json.py @@ -22,16 +22,7 @@ def render(service, middleware): 'exec-opts': ['native.cgroupdriver=cgroupfs'], 'iptables': True, 'storage-driver': 'overlay2', - 'default-address-pools': [ - { - 'base': '172.30.0.0/16', - 'size': 27 - }, - { - 'base': '172.31.0.0/16', - 'size': 27 - }, - ], + 'default-address-pools': config['address_pools'], } isolated = middleware.call_sync('system.advanced.config')['isolated_gpu_pci_ids'] for gpu in filter(lambda x: x not in isolated, get_nvidia_gpus()):