seq 201 | xargs -i ./genOnce.cmd {} 建立201个
cat genOnce.cmd
zid=$(echo $1 | sed 's/^/000/g' | sed 's/.*\(...\)$/\1/g' )
# -d is undocumented, but functions!
# this is good:
# docker run --name zhc$zid -p 0.0.0.0:5$zid:4000 -p 0.0.0.0:7$zid:6000 -i -t -d --rm busybox /bin/sh -c " /bin/nc -ll -p 4000 -e /bin/sh;"
docker run -v /home/z/dockerImple/toVMs:/mnt --name zhc$zid -p 0.0.0.0:5$zid:4000 -p 0.0.0.0:7$zid:6000 -i -t -d --rm busybox /bin/sh -c " /bin/nc -ll -p 4000 -e /bin/sh;"
网友评论