Files
cli/components/engine/daemon
Yong Tang 3a11a917d1 Fix issue in docker stats with NetworkDisabled=true
This fix tries to address the issue in 25000 where `docker stats`
will not show network stats with `NetworkDisabled=true`.

The `NetworkDisabled=true` could be either invoked through
remote API, or through `docker daemon -b none`.

The issue was that when `NetworkDisabled=true` either by API or
by daemon config, there is no SandboxKey for container so an error
will be returned.

This fix fixes this issue by skipping obtaining SandboxKey if
`NetworkDisabled=true`.

Additional test has bee added to cover the changes.

This fix fixes 25000.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 7bb9c5397e69866fcb1142cda430b842a710f751
Component: engine
2016-08-23 16:04:06 -07:00
..
…
…
…
…
…
2016-07-23 11:32:23 +08:00
2016-07-21 20:04:47 -07:00
2016-07-23 11:32:23 +08:00
2016-07-18 12:53:34 -06:00
…
…
…
…
…
…
2016-08-01 01:00:38 +08:00
…
2016-08-11 13:47:01 -04:00
…
…
…
…
…
2016-08-08 22:46:53 +08:00
…
…
2016-08-16 14:16:12 -04:00
…