Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install tshark on Docker?

I want to install tshark on ubuntu17.04 on Docker for Mac with Dockerfile. I am using docker-compose

In apt install tshark, there is a following prompt.
The prompt stopping install despite I typed yes.

How to install tshark in Dockerfile?

Dumpcap can be installed in a way that allows members of the "wireshark" system
group to capture packets. This is recommended over the alternative of running
Wireshark/Tshark directly as root, because less of the code will run with
elevated privileges.

For more detailed information please see
/usr/share/doc/wireshark-common/README.Debian.

Enabling this feature may be a security risk, so it is disabled by default. If
in doubt, it is suggested to leave it disabled.

Should non-superusers be able to capture packets? [yes/no] yes
like image 667
KiYugadgeter Avatar asked Apr 03 '17 04:04

KiYugadgeter


People also ask

How do I know if Tshark is installed?

To find out whether tshark is installed properly, as well as its version, execute this command: $ tshark -v TShark 1.8.


1 Answers

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tshark

Will install without needing user interaction.

like image 159
Whereisccguys Avatar answered Sep 19 '22 09:09

Whereisccguys