Commit 53a92a8a authored by 金凯强's avatar 金凯强 🎨

打印日志

parent 7bed91d7
......@@ -31,6 +31,8 @@ class InfoService(HSBaseUCService):
for container in containers:
app_info = {}
app_info['app_name'] = container['Names'][0][1:] # "/***"这种格式
logger.info('容器{}信息:{}'.format(app_info['app_name'], container))
port = container['Ports']
if port:
app_info['app_url'] = f"{host_ip}:{port[0].get('PublicPort')}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment