3

I want to capture a specific network of hosts from docker container.

host <-> host // How do I capture a specific port of tcp that communicates with the host?

I want to know how to set it in the container.

botob
  • 81
  • 4

1 Answers1

0

You need to run the container with network_mode=host:

docker run --net=host ...

See https://hub.docker.com/r/kaazing/tcpdump for more examples

Ayoub Kaanich
  • 992
  • 8
  • 20