From 59fdc6517126baca8ac99c6c032b145a51001d58 Mon Sep 17 00:00:00 2001 From: FernandoLGuzman Date: Thu, 12 Jan 2023 18:34:22 +0000 Subject: [PATCH] Print response when pushing chef docker images --- examples/chef/create_docker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/chef/create_docker.py b/examples/chef/create_docker.py index bc80b612537cf8..9322779b943738 100755 --- a/examples/chef/create_docker.py +++ b/examples/chef/create_docker.py @@ -66,4 +66,6 @@ image[0].tag(docker_image_name, tag=f'revision-id_{args.revision_id}') print(f'Pushing image: {docker_image_name}') - client.images.push(docker_image_name) + response = client.images.push(docker_image_name, stream=True, decode=True) + for line in response: + print(line)