mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a3879fc169
- When invoked from docker, endpoint.Statistics() returns the statistics of the host's interfaces. Issue is tracked down to ioutil.ReadFile(). For some reason even if invoked from inside the sandbox netns, it ends up reading the stats file from the default netns, when invoked from docker. If same operation is run from inside a dedicated binary, it works as expected. - Replacing it with exec.Command("cat", <file>) solves the issue Signed-off-by: Alessandro Boch <aboch@docker.com> |
||
---|---|---|
.. | ||
interface_linux.go | ||
interface_windows.go | ||
namespace_linux.go | ||
namespace_unsupported.go | ||
namespace_windows.go | ||
neigh_linux.go | ||
neigh_windows.go | ||
options_linux.go | ||
route_linux.go | ||
sandbox.go | ||
sandbox_linux_test.go | ||
sandbox_test.go | ||
sandbox_unsupported.go | ||
sandbox_unsupported_test.go |