Skip to content

Commit

Permalink
Use address pool specified in docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Sep 3, 2024
1 parent 6e05c40 commit 7060a0c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/middlewared/middlewared/etc_files/docker/daemon.json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()):
Expand Down

0 comments on commit 7060a0c

Please sign in to comment.