1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api
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
..
client Suppress verbose "Sending build context" messages in non tty scenarios 2016-08-15 18:35:05 -07:00
fixtures
server Merge pull request #25564 from coolljt0725/fix_inspect_network 2016-08-12 11:11:09 +02:00
types/backend Let client print error when speicify wrong detach keys 2016-04-04 15:35:55 +08:00
common.go Atomically save libtrust key file 2016-06-27 15:54:39 -07:00
common_test.go fix typos 2016-03-06 00:59:11 +08:00
README.md

This directory contains code pertaining to the Docker API:

  • Used by the docker client when communicating with the docker daemon

  • Used by third party tools wishing to interface with the docker daemon