Update docker.py

This commit is contained in:
qiaofeng1227 2023-03-09 12:56:06 +08:00 committed by GitHub
parent aa79c83cdf
commit fa154bdf6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ def get_process_perc(app_name):
client = docker.from_env()
image_name = app_name + ":" + app_version
print(resp)
resp = client.api.pull(image_name, stream=True, decode=True)
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))