Explain how to bypass the Docker proxy

Neither myself nor bhaskerh@ can consistently remember how to do this.

PiperOrigin-RevId: 320407005
This commit is contained in:
Michael Pratt
2020-07-09 09:04:47 -07:00
committed by gVisor bot
parent c4815af947
commit 8d2910a04d
+10
View File
@@ -129,3 +129,13 @@ go tool pprof -top /usr/local/bin/runsc /tmp/cpu.prof
```
[pprof]: https://github.com/google/pprof/blob/master/doc/README.md
### Docker Proxy
When forwarding a port to the container, Docker will likely route traffic
through the [docker-proxy][]. This proxy may make profiling noisy, so it can be
helpful to bypass it. Do so by sending traffic directly to the container IP and
port. e.g., if the `docker0` IP is `192.168.9.1`, the container IP is likely a
subsequent IP, such as `192.168.9.2`.
[docker-proxy]: https://windsock.io/the-docker-proxy/