Skip to content

Commit

Permalink
revert output redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
codepope committed Jun 19, 2020
1 parent 5b0647f commit 4a905f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (c *DockerClient) PullImage(ctx context.Context, imageName string, out io.W
defer resp.Close()

termFd, isTerm := term.GetFdInfo(os.Stderr)
return jsonmessage.DisplayJSONMessagesStream(resp, os.Stderr, termFd, isTerm, nil)
return jsonmessage.DisplayJSONMessagesStream(resp, out, termFd, isTerm, nil)
}

func (c *DockerClient) TagImage(ctx context.Context, sourceRef, tag string) error {
Expand Down Expand Up @@ -183,7 +183,7 @@ func (c *DockerClient) BuildImage(ctx context.Context, tar io.Reader, tag string

termFd, isTerm := term.GetFdInfo(os.Stderr)

if err := jsonmessage.DisplayJSONMessagesStream(resp.Body, os.Stderr, termFd, isTerm, nil); err != nil {
if err := jsonmessage.DisplayJSONMessagesStream(resp.Body, out, termFd, isTerm, nil); err != nil {
return nil, err
}

Expand Down Expand Up @@ -300,7 +300,7 @@ func (c *DockerClient) PushImage(ctx context.Context, imageName string, out io.W
defer resp.Close()

termFd, isTerm := term.GetFdInfo(os.Stderr)
return jsonmessage.DisplayJSONMessagesStream(resp, os.Stderr, termFd, isTerm, nil)
return jsonmessage.DisplayJSONMessagesStream(resp, out, termFd, isTerm, nil)
}

func CheckManifest(ctx context.Context, imageRef string, token string) (*dockerparser.Reference, error) {
Expand Down

0 comments on commit 4a905f1

Please sign in to comment.