如何在Docker上安装tshark?

我想使用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将在不需要用户交互的情况下安装.

相关文章

Docker是什么Docker是 Docker.Inc 公司开源的一个基于 LXC技...
本文为原创,原始地址为:http://www.cnblogs.com/fengzheng...
镜像操作列出镜像:$ sudo docker imagesREPOSITORY TAG IMA...
本文原创,原文地址为:http://www.cnblogs.com/fengzheng/p...
在 Docker 中,如果你修改了一个容器的内容并希望将这些更改...
在Docker中,--privileged 参数给予容器内的进程几乎相同的权...