bash shell — 输出主机所有容器的tcpdump数据

#!/bin/bash

for server_name in `docker ps --format "table {{.Names}}" | sed 1d`

do

server_pid=`docker inspect --format "{{.Statlinux重启命令e.Pid}}" $se八省联考排名rver_namelinux常用命令`

nsentlinux系统安装er -n -t $server_pid tcpdumplinux系统 -i any -w $server_name.pcap &

done