我想在Docker for Mac上使用Dockerfile在ubuntu17.04上安裝tshark。 我正在使用docker-compose如何在Docker上安裝tshark?
在apt install tshark
中,出現以下提示。
儘管我輸入了yes
,但提示停止安裝。
如何在Dockerfile中安裝tshark?
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
我試過第一個例子'RUN apt install -yq tshark' 但是提示使得停止安裝。 – KiYugadgeter
@KiYugadgeter好的。也許第二個例子在這種情況下會更好。關於第一個例子,確保使用相同的基礎圖像。 – VonC
我也嘗試過第二種方式。 但顯示相同的消息。 – KiYugadgeter