1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/libnetwork/sandbox
Alessandro Boch a3879fc169 Endpoint interface stats read fails when invoked from docker
- 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>
2015-06-29 20:29:41 -07:00
..
interface_linux.go Endpoint interface stats read fails when invoked from docker 2015-06-29 20:29:41 -07:00
interface_windows.go Windows: Compiles again 2015-06-12 12:40:36 -07:00
namespace_linux.go Add neighbor support to sandbox 2015-06-18 15:07:17 -07:00
namespace_unsupported.go Windows: Compiles again 2015-06-12 12:40:36 -07:00
namespace_windows.go Windows: Compiles again 2015-06-12 12:40:36 -07:00
neigh_linux.go Add neighbor support to sandbox 2015-06-18 15:07:17 -07:00
neigh_windows.go Fixing a windows compile error in docker during vendor-in 2015-06-21 02:32:07 -07:00
options_linux.go Add neighbor support to sandbox 2015-06-18 15:07:17 -07:00
route_linux.go Add LeaveAll support 2015-06-19 18:55:26 -07:00
sandbox.go Endpoint to expose interfaces' statistics 2015-06-29 16:15:31 -07:00
sandbox_linux_test.go Endpoint to expose interfaces' statistics 2015-06-29 16:15:31 -07:00
sandbox_test.go Make sure sandbox files are removed after tests 2015-06-11 14:55:17 -07:00
sandbox_unsupported.go Windows: Compiles again 2015-06-12 12:40:36 -07:00
sandbox_unsupported_test.go Added unsupported implementations for sandbox and sandbox 2015-04-14 04:53:02 +00:00