moby--moby/api/client/image
Yong Tang b4ba575a28 Suppress verbose "Sending build context" messages in non tty scenarios
This fix tries to address the issue raised in 25661 where verbose
"Sending build context" messages were not suppressed in non tty (e.g. log file)
sencarios.

This fix suppress the "Sending build context" message (other than the last one)
if the output is not a tty. The last update of the "Sending build context"
message is still sent to the output.

This fix has been tested manually:
```
docker build -t tmp . > build.log
```
The output is (only one "Sending build context"):
```
Sending build context to Docker daemon 249.4 MB
Step 1 : FROM busybox
 ---> 2b8fd9751c4c
Step 2 : RUN echo 'test'
 ---> Using cache
 ---> 7db298b6c493
Successfully built 7db298b6c493
```

This fix fixes 25661.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-08-15 18:35:05 -07:00
..
build.go Suppress verbose "Sending build context" messages in non tty scenarios 2016-08-15 18:35:05 -07:00
history.go Implement stringutils.Ellipsis() 2016-08-11 14:14:06 +02:00
images.go Refactor dockerCli *Format to ConfigFile call 2016-08-04 15:00:00 +02:00
import.go
load.go
pull.go
push.go
remove.go
save.go
search.go Implement stringutils.Ellipsis() 2016-08-11 14:14:06 +02:00
tag.go Updates on cli reference documentation 2016-07-07 20:43:18 +02:00