The Docker CLI
Go to file
Yong Tang af80020ef2 Fix Windows `docker stats` showing Linux headers
This fix is an attempt to fix issue raised in #28005 where
`docker stats` on Windows shows Linux headers if there is
no containers in stats.

The reason for the issue is that, in case there is no container,
a header is faked in:
https://github.com/docker/docker/blob/v1.13.0/cli/command/formatter/formatter.go#L74-L78
which does not know OS type information (as OS was stored with container stat entries)

This fix tries to fix the issue by moving OS type information
to stats context (instead of individual container stats entry).

Additional unit tests have been added.

This fix fixes #28005.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-02-05 08:55:30 -08:00
command Fix Windows `docker stats` showing Linux headers 2017-02-05 08:55:30 -08:00
compose Merge pull request #30506 from vdemeester/29732-follow-up-compose-indempotent 2017-01-31 13:35:04 -08:00
config Add `--format` to `docker service ls` 2017-02-01 08:33:19 -08:00
debug Move debug functions to cli/debug package 2016-12-12 09:33:58 +01:00
flags Trim quotes from TLS flags. 2017-01-03 15:58:41 -05:00
internal/test Add some unit tests to the node and swarm cli code 2017-01-09 18:30:15 +01:00
trust Merge pull request #29313 from vdemeester/move-cli-config 2016-12-28 09:05:51 -08:00
cobra.go Wrap output of docker cli --help 2017-02-03 11:05:49 +00:00
error.go Remove old cli framework. 2016-08-25 13:09:04 -04:00
required.go fix typos 2016-07-05 20:42:17 +08:00