From 7f5156b513ff63cd4ba1597f6435e2c66dbfb13b Mon Sep 17 00:00:00 2001 From: FernandoLGuzman <31297194+FernandoLGuzman@users.noreply.github.com> Date: Fri, 13 Jan 2023 07:02:54 -0800 Subject: [PATCH] Print response when pushing chef docker images (#24389) --- 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)