mirror of https://github.com/docker/cli.git
af80020ef2
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> |
||
---|---|---|
.. | ||
container.go | ||
container_test.go | ||
custom.go | ||
custom_test.go | ||
disk_usage.go | ||
formatter.go | ||
image.go | ||
image_test.go | ||
network.go | ||
network_test.go | ||
plugin.go | ||
plugin_test.go | ||
reflect.go | ||
reflect_test.go | ||
service.go | ||
service_test.go | ||
stats.go | ||
stats_test.go | ||
volume.go | ||
volume_test.go |