Files
dj/integration-work/inspect_vdn_networks.py

5 lines
350 B
Python

import json,subprocess
for name in ('canvas-h3-prompt-normalizer-healthy-20261026','huobao-vdn-normalizer','comfyui','h3-caption-gpu3-canary-8a5f'):
obj=json.loads(subprocess.check_output(['docker','inspect',name],text=True))[0]
print(name, 'networks', list(obj['NetworkSettings']['Networks']), 'extra_hosts',obj['HostConfig']['ExtraHosts'])