From d4086006c5212b35ee8e6fd47cf2925a9f2ecdcc Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 9 Mar 2023 12:53:35 +0800 Subject: [PATCH] Update docker.py --- appmanage/api/utils/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appmanage/api/utils/docker.py b/appmanage/api/utils/docker.py index a08979dc..8210c065 100644 --- a/appmanage/api/utils/docker.py +++ b/appmanage/api/utils/docker.py @@ -14,7 +14,7 @@ def get_process_perc(app_name): app_version = read_env(path, "APP_VERSION") client = docker.from_env() image_name = app_name + ":" + app_version - resp = client.api.pull(image_name:, stream=True, decode=True) + resp = client.api.pull(image_name, stream=True, decode=True) print(resp) #for line in resp: # print(json.dumps(line, indent=4))