1
0
Fork 0

Inspect only the containers carrying the lookup label

This commit is contained in:
badblocks 2026-09-01 16:13:15 -07:00
parent 8bd9f06f12
commit e7a0f7b930
Signed by: badblocks
SSH key fingerprint: SHA256:hEcM6BP4hKm9F7WsomNuXSBpPn2BSDnFzPSl3y1NerQ
2 changed files with 52 additions and 0 deletions

View file

@ -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)