Update docker_runtime.py #8422 (#8423)

This commit is contained in:
Muly Oved 2025-05-10 23:08:14 +01:00 committed by GitHub
parent 27c49471a8
commit da637a0dad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -489,8 +489,9 @@ class DockerRuntime(ActionExecutionClient):
def web_hosts(self):
hosts: dict[str, int] = {}
host_addr = os.environ.get('DOCKER_HOST_ADDR', 'localhost')
for port in self._app_ports:
hosts[f'http://localhost:{port}'] = port
hosts[f'http://{host_addr}:{port}'] = port
return hosts