Skip to content

Commit

Permalink
Merge pull request #1902 from adamtheturtle/log-build-error-docker-ma…
Browse files Browse the repository at this point in the history
…c-network

Log build errors when creating images for the Docker Mac network
  • Loading branch information
jongiddy committed Jun 12, 2021
2 parents 9a13c05 + cc1a5c8 commit ab7c4bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dcos_e2e_cli/dcos_docker/commands/mac_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ def setup_mac_network(
click.echo(message, err=True)
sys.exit(1)
raise
except docker.errors.BuildError as exc:
message = 'Error: There was a problem building a Docker image:\n'
click.echo(message, err=True)
for line in exc.build_log:
if 'stream' in line:
click.echo(' ' + line['stream'].strip(), err=True)
sys.exit(1)

click.echo(message=configuration_instructions)

Expand Down

0 comments on commit ab7c4bf

Please sign in to comment.