K
K
Kirill2019-01-16 00:04:15
Computer networks
Kirill, 2019-01-16 00:04:15

How to track requests made from docker?

I need to track all http(s) requests made inside a docker container.
The idea was to put mitmproxy in a container and set the `http_proxy` environment variable, but this will only monitor requests from applications that support the `http_proxy` variable.

There are essentially two questions:

- are there any ready-made solutions (a basic container with such a function, for example)?
- how to set global proxy for all requests in docker?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
chupasaurus, 2019-01-16
@chupasaurus

  1. Squid
  2. On the host, NAT traffic to 80,443/TCP ports from docker networks, excluding the proxy itself.

M
Max, 2019-01-16
@MaxDukov

So

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question