Created
October 28, 2016 22:07
-
-
Save mustafaakin/e114badd8d54d9a1c3da3bda7ef7bd46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker network create -d overlay mynet | |
docker run --name iperf_overlay -d -ti --net mynet \ | |
--env="constraint:node==mhs-demo0-do" \ | |
mustafaakin/alpine-iperf iperf -s | |
# Wait a little | |
sleep 1 | |
IP=$(docker inspect -f "{ { .NetworkSettings.Networks.mynet.IPAddress }}" iperf_overlay) | |
for run in {1..5}; do | |
docker run --net mynet --env="constraint:node==mhs-demo1-do" -ti \ | |
mustafaakin/alpine-iperf \ | |
iperf -c $IP -P 10 | grep SUM | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment