How to setup wireshark in a docker container?
I've installed wireshark in a privileged Ubuntu container and I don't want wireshark to have access to interfaces of host OS so that user won't be able to capture the packets of host OS. How do I configure wireshark for the same.
Not sure how your interfacing is setup. I would expect an ethernet pair connecting your container to the docker0 bridge. That would not allow you to see the host OS interfaces.
My container setup is as below:
I have not done any setup for interfaces
I doubt you see all interfaces, unless you deploy with --net=host
What do you want to capture or where to capture from? You exclude host interfaces, but then you can only capture traffic that reaches your container or originates in it? What do you want to do?