Skip to content

Commit

Permalink
fix(docker): pulling images without output (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockopp authored Dec 15, 2021
1 parent c123efa commit 843adc8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runtime/docker/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"context"
"fmt"
"io"
"io/ioutil"
"os"
"strings"

Expand Down Expand Up @@ -51,6 +52,12 @@ func (c *client) CreateImage(ctx context.Context, ctn *pipeline.Container) error
if err != nil {
return err
}
} else {
// discard output from image pull
_, err = io.Copy(ioutil.Discard, reader)
if err != nil {
return err
}
}

return nil
Expand Down

0 comments on commit 843adc8

Please sign in to comment.