Inspect only the containers carrying the lookup label
This commit is contained in:
parent
8bd9f06f12
commit
e7a0f7b930
2 changed files with 52 additions and 0 deletions
|
|
@ -26,6 +26,9 @@ class Docker(ProcessorInterface):
|
|||
|
||||
self.parsed_object = {}
|
||||
for container in self.client.containers.list():
|
||||
if not any(self.label in key for key in container.labels):
|
||||
continue
|
||||
|
||||
# Issue 32 - Docker container cannot connect to containers in different network.
|
||||
if ha_proxy_network_name not in container.attrs["NetworkSettings"]["Networks"].keys():
|
||||
ha_proxy_network.connect(container.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue