1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/client
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
..
bundlefile Add some tests for bundlefile and improve the error messages for LoadFile 2016-06-16 18:18:25 -04:00
container Refactor waitExitOrRemoved by mlaventure 2016-08-12 00:50:07 +08:00
formatter Implement stringutils.Ellipsis() 2016-08-11 14:14:06 +02:00
idresolver Update to new swarmkit/engine-api 2016-06-30 17:22:47 -07:00
image Suppress verbose "Sending build context" messages in non tty scenarios 2016-08-15 18:35:05 -07:00
inspect remove fallback for Go 1.4 2016-06-07 22:38:02 +02:00
network Refactor dockerCli *Format to ConfigFile call 2016-08-04 15:00:00 +02:00
node Adding Joined at to node inspect 2016-08-08 16:23:10 -07:00
plugin Implement stringutils.Ellipsis() 2016-08-11 14:14:06 +02:00
registry tweak logout message 2016-08-12 17:00:06 -07:00
service Remove --network-add and --network-rm flags from service update 2016-08-11 19:37:21 -07:00
stack Merge pull request #25216 from aanand/deploy-error-when-not-in-swarm-mode 2016-08-12 14:17:47 -07:00
swarm Improve swarm join-token instructions 2016-08-02 16:44:02 +02:00
system Ignore 'not a swarm error' when inspecting a task. 2016-08-03 12:22:07 -04:00
task service tasks: Improve error reporting 2016-07-21 19:19:11 -07:00
volume Refactor dockerCli *Format to ConfigFile call 2016-08-04 15:00:00 +02:00
cli.go Refactor dockerCli *Format to ConfigFile call 2016-08-04 15:00:00 +02:00
client.go
commands.go Convert inspect to cobra. 2016-08-03 10:36:47 -04:00
credentials.go Migrate login & logout command to cobra 2016-06-10 12:04:29 +02:00
hijack.go Fix logrus formatting 2016-06-11 13:16:55 -07:00
registry.go Merge pull request #23584 from nishanttotla/private-images-swarm-services 2016-06-30 17:18:59 -07:00
trust.go api,daemon: cleanup some unused stuff 2016-06-21 14:15:19 -07:00
trust_test.go
utils.go Migrate exec command to cobra 2016-07-29 02:10:36 +00:00