<p>With docker networking in one standard configuration, each container has it's own virtual NIC.</p>

<p>I'm interested in monitoring all those simultaneously, scraping IP src and dst address as well as TCP or UDP src and dst port if applicable.  </p>

<p>How costly is doing this likely to be?</p>

<p>Is there any way to do what I want which is monitoring just the docker bridge interface when in bridge mode?  </p>

<p>When dealing with multiple docker networks communicating with each other via flannel in Kubernetes, I found that many src and dst IP addressee were just the bridge address.  (Presumably, the bridge does NAT, but for some reason, I wasn't seeing translation rules under iptables -t nat -L)</p>

FullTimeCoderPartTimeSysAdmin
<p>It is considerable. If you are doing pcap inside the containers you might run into 2-3 times more CPU computation overhead from your applications. But in reality, it all depends on how you are capturing, is your expression capturing every single packet? Does your application have heavy traffic?</p>

<p>Another question here offers more insights: <a href="https://stackoverflow.com/questions/38891769/how-intrusive-is-tcpdump">How intrusive is tcpdump?</a></p>

<p>As you have already mentioned, if you capture just on the bridged interface you might be already seeing the translated/masqueraded addresses.</p>
