Skip to content

Commit

Permalink
Fix docker wiping ipv6 default route
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubad786 committed Dec 31, 2024
1 parent 9ef345f commit 80b66cb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ class DockerService(SimpleService):
async def before_start(self):
await self.middleware.call('docker.state.set_status', Status.INITIALIZING.value)
await self.middleware.call('docker.state.before_start_check')
physical_ifaces = await self.middleware.call('interface.query', [['type', '=', 'PHYSICAL']])
for key, value in (
('vm.panic_on_oom', 0),
('vm.overcommit_memory', 1),
*[(f'net.ipv6.conf.{i["name"]}.accept_ra', 2) for i in physical_ifaces],
):
await self.middleware.call('sysctl.set_value', key, value)

Expand Down

0 comments on commit 80b66cb

Please sign in to comment.