加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

如何在Docker上安装tshark?

发布时间:2020-12-16 03:25:33 所属栏目:安全 来源:网络整理
导读:我想使用Dockerfile在Mac上的Docker的ubuntu17.04上安装tshark. 我正在使用docker-compose 在apt install tshark中,出现以下提示. 尽管我键入是,但提示仍停止安装. 如何在Dockerfile中安装tshark? Dumpcap can be installed in a way that allows members o

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

在apt install tshark中,出现以下提示.
尽管我键入是,但提示仍停止安装.

如何在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 =非交互式apt-get install -y tshark将在不需要用户交互的情况下安装.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读