gpt4 book ai didi

docker - 如何在 Docker 上安装 tshark?

转载 作者:行者123 更新时间:2023-12-02 01:25:04 24 4
gpt4 key购买 nike

我想使用 Dockerfile 在 Docker for Mac 上的 ubuntu17.04 上安装 tshark。我正在使用 docker-compose

apt install tshark中,有如下提示。
尽管我输入了"is",但仍提示停止安装。

如何在 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 DEBIAN_FRONTEND=noninteractive apt-get install -y tshark

无需用户交互即可安装。

关于docker - 如何在 Docker 上安装 tshark?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43176520/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com