Browse Source

Update docker.py

qiaofeng1227 2 years ago
parent
commit
9346fd6d59
1 changed files with 3 additions and 3 deletions
  1. 3 3
      appmanage/api/utils/docker.py

+ 3 - 3
appmanage/api/utils/docker.py

@@ -17,9 +17,9 @@ def get_process_perc(app_name):
     image_name = app_name + ":" + app_version
     print(resp)
     resp = client.api.pull(app_name, tags=app_version, stream=True, decode=True)
-    print(resp)
-    #for line in resp:
-    #  print(json.dumps(line, indent=4))
+
+    for line in resp:
+      print(json.dumps(line, indent=4))
 
     return process_now