mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-17 14:16:29 +00:00
Disable ipv6 / DNS Resolve troubles (#299)
* Disable ipv6 * Disable search domain * Update network.py * Update __init__.py * add options
This commit is contained in:
parent
73c437574c
commit
0c44064926
@ -47,8 +47,10 @@ class DockerAPI(object):
|
|||||||
hostname = kwargs.get('hostname')
|
hostname = kwargs.get('hostname')
|
||||||
|
|
||||||
# setup network
|
# setup network
|
||||||
|
kwargs['dns_search'] = ["."]
|
||||||
if network_mode:
|
if network_mode:
|
||||||
kwargs['dns'] = [str(self.network.supervisor)]
|
kwargs['dns'] = [str(self.network.supervisor)]
|
||||||
|
kwargs['dns_opt'] = ["ndots:0"]
|
||||||
else:
|
else:
|
||||||
kwargs['network'] = None
|
kwargs['network'] = None
|
||||||
|
|
||||||
|
@ -52,7 +52,8 @@ class DockerNetwork(object):
|
|||||||
ipam_config = docker.types.IPAMConfig(pool_configs=[ipam_pool])
|
ipam_config = docker.types.IPAMConfig(pool_configs=[ipam_pool])
|
||||||
|
|
||||||
return self.docker.networks.create(
|
return self.docker.networks.create(
|
||||||
DOCKER_NETWORK, driver='bridge', ipam=ipam_config, options={
|
DOCKER_NETWORK, driver='bridge', ipam=ipam_config,
|
||||||
|
enable_ipv6=False, options={
|
||||||
"com.docker.network.bridge.name": DOCKER_NETWORK,
|
"com.docker.network.bridge.name": DOCKER_NETWORK,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user