moby--moby/daemon
Yong Tang 7bb9c5397e 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>
2016-08-23 16:04:06 -07:00
..
caps
cluster Update executor changes from swarmkit 2016-08-22 11:36:20 -07:00
events Make daemon events listen for plugin lifecycle events. 2016-07-26 10:51:47 -07:00
exec
graphdriver Avoid fork on mount for overlay2 in common case 2016-08-22 11:43:10 -07:00
links
logger Merge pull request #24814 from samuelkarp/awslogs 2016-08-12 15:51:06 -04:00
network
apparmor_default.go
apparmor_default_unsupported.go
archive.go
archive_unix.go
archive_windows.go
attach.go
auth.go
changes.go
commit.go
config.go Rename config LiveRestore to LiveRestoreEnabled 2016-07-28 17:10:40 -07:00
config_experimental.go
config_solaris.go
config_stub.go
config_test.go
config_unix.go Rename config LiveRestore to LiveRestoreEnabled 2016-07-28 17:10:40 -07:00
config_windows.go
container.go Wait container's removal via Events API 2016-08-08 22:46:53 +08:00
container_operations.go Merge pull request #22208 from msabansal/staticip 2016-08-12 11:39:25 -07:00
container_operations_solaris.go
container_operations_unix.go Replace old oci specs import with runtime-specs 2016-08-17 09:38:34 -07:00
container_operations_windows.go
create.go bugfix: report "destroy" after all volumes of container destroy 2016-08-17 11:02:16 +08:00
create_unix.go
create_windows.go
daemon.go Wait container's removal via Events API 2016-08-08 22:46:53 +08:00
daemon_experimental.go Rename config LiveRestore to LiveRestoreEnabled 2016-07-28 17:10:40 -07:00
daemon_linux.go
daemon_linux_test.go
daemon_solaris.go
daemon_stub.go Make daemon events listen for plugin lifecycle events. 2016-07-26 10:51:47 -07:00
daemon_test.go
daemon_unix.go Replace old oci specs import with runtime-specs 2016-08-17 09:38:34 -07:00
daemon_unix_test.go
daemon_unsupported.go
daemon_windows.go Removing old custom RootFS behavior on Windows. 2016-07-29 14:15:59 -07:00
debugtrap_unix.go
debugtrap_unsupported.go
debugtrap_windows.go
delete.go Add `--force` in `docker volume rm` to fix out-of-band volume driver deletion 2016-08-18 18:01:25 -07:00
delete_test.go
discovery.go
discovery_test.go
errors.go
events.go Make daemon events listen for plugin lifecycle events. 2016-07-26 10:51:47 -07:00
events_test.go
exec.go
exec_linux.go
exec_solaris.go
exec_windows.go
export.go
health.go
health_test.go
image.go
image_delete.go
image_exporter.go
image_history.go
image_inspect.go
image_pull.go
image_push.go
image_tag.go
images.go
import.go
info.go Add live-restore state to docker info output 2016-07-28 17:10:40 -07:00
inspect.go
inspect_solaris.go
inspect_unix.go
inspect_windows.go
keys.go
keys_unsupported.go
kill.go make container kill debug log readable 2016-08-01 01:00:38 +08:00
links.go
links_test.go
list.go Carry #21567 2016-08-11 13:47:01 -04:00
list_unix.go
list_windows.go
logdrivers_linux.go
logdrivers_windows.go
logs.go
logs_test.go
monitor.go Persist pause state to disk to support container live restore 2016-08-19 05:32:33 -04:00
monitor_linux.go
monitor_solaris.go
monitor_windows.go
mounts.go
names.go
network.go
oci_linux.go Replace old oci specs import with runtime-specs 2016-08-17 09:38:34 -07:00
oci_solaris.go
oci_windows.go Merge pull request #23391 from Microsoft/WindowsSandboxSize 2016-08-09 15:34:39 +02:00
pause.go
rename.go
resize.go
restart.go Move --rm to daemon side 2016-08-08 22:46:53 +08:00
search.go
search_test.go
seccomp_disabled.go Replace old oci specs import with runtime-specs 2016-08-17 09:38:34 -07:00
seccomp_linux.go Replace old oci specs import with runtime-specs 2016-08-17 09:38:34 -07:00
seccomp_unsupported.go
selinux_linux.go
selinux_unsupported.go
start.go Not use goroutine for container's auto-removal 2016-08-08 22:46:53 +08:00
start_linux.go
start_windows.go
stats.go Fix issue in `docker stats` with `NetworkDisabled=true` 2016-08-23 16:04:06 -07:00
stats_collector_solaris.go
stats_collector_unix.go
stats_collector_windows.go
stop.go
top_unix.go
top_unix_test.go
top_windows.go
unpause.go
update.go
update_linux.go
update_solaris.go
update_windows.go
volumes.go
volumes_unit_test.go
volumes_unix.go revendor engine-api 2016-08-16 14:16:12 -04:00
volumes_windows.go
wait.go