# 快速部署(退出后停止并删除容器)
docker run -it --rm --net=host 918178/iftop:latest # 无参数运行 iftop
docker run -it --rm --net=host 918178/iftop:latest -P -i eth0 # 显示主机名及其端口+指定网卡
# -i interface 监听指定网络接口
# -P 显示主机名及其端口
# 快速部署(长时间使用)
docker run -it--name iftop --net=host 918178/iftop:latest # 无参数运行 iftop
docker attach iftop # 进入容器
# 依次按 Ctrl+P 和 Ctrl+Q 退出会话(容器继续在后台运行)
netstat -pantu | grep [port] # 根据对应端口定位进程
Content type
Image
Digest
sha256:d2dc4a9d0…
Size
3.9 MB
Last updated
12 months ago
docker pull 918178/iftop