Ask Your Question

Revision history [back]

How to run Wireshark in Ubuntu container without privileged mode

I've installed wireshark and xrdp in Ubuntu 18.04 Container. After starting the container with the --privileged mode and taking RDP connection, I can see the wireshark running with having access to all the interfaces but, when I don't specify the --privileged mode while running the container, then wireshark does not show any interfaces. So how do I configure the container so that,

  1. I should be able to run container without privileged mode and still should be able to see the interfaces
  2. Wireshark should not have access to all the interfaces of the host machine. It should have limited or customized access in which we should be able to mention to which interfaces it should have access to.

How to run Wireshark in Ubuntu container without privileged mode

I've installed wireshark and xrdp in Ubuntu 18.04 Container. After starting the container with the --privileged mode and taking RDP connection, I can see the wireshark running with having access to all the interfaces but, when I don't specify the --privileged mode while running the container, then wireshark does not show any interfaces. So how do I configure the container so that,

  1. I should be able to run container without privileged mode and still should be able to see the interfaces
  2. Wireshark should not have access to all the interfaces of the host machine. It should have limited or customized access in which we should be able to mention to which interfaces it should have access to.