Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
2efb4f5be0
commit
7544580b4b
6 changed files with 42 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ def docker_client():
|
|||
"""
|
||||
cert_path = os.environ.get('DOCKER_CERT_PATH', '')
|
||||
if cert_path == '':
|
||||
cert_path = os.path.join(os.environ.get('HOME'), '.docker')
|
||||
cert_path = os.path.join(os.environ.get('HOME', ''), '.docker')
|
||||
|
||||
base_url = os.environ.get('DOCKER_HOST')
|
||||
tls_config = None
|
||||
|
|
|
|||
|
|
@ -19,7 +19,9 @@ def stream_output(output, stream):
|
|||
all_events.append(event)
|
||||
|
||||
if 'progress' in event or 'progressDetail' in event:
|
||||
image_id = event['id']
|
||||
image_id = event.get('id')
|
||||
if not image_id:
|
||||
continue
|
||||
|
||||
if image_id in lines:
|
||||
diff = len(lines) - lines[image_id]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue