Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Exit, if local image inspect fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Sargun Dhillon committed Nov 13, 2017
1 parent 60844d8 commit 6bf5010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions executor/runtime/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,10 +646,10 @@ func (r *DockerRuntime) Prepare(parentCtx context.Context, c *Container, binds [

imageInfo, _, err = r.client.ImageInspectWithRaw(ctx, c.QualifiedImageName())
if err != nil {
log.Errorf("Error in inspecting docker image %s : %v\n", c.QualifiedImageName(), err)
} else {
size = r.reportDockerImageSizeMetric(c, imageInfo, c.QualifiedImageName())
log.Errorf("Error in inspecting docker image %s: %v", c.QualifiedImageName(), err)
return err
}
size = r.reportDockerImageSizeMetric(c, imageInfo, c.QualifiedImageName())

// Check if this image (container) has a an entrypoint, or if we
// were passed one
Expand Down

0 comments on commit 6bf5010

Please sign in to comment.