Created
February 12, 2014 21:47
-
-
Save abhvious/8965190 to your computer and use it in GitHub Desktop.
docker container-to-container networking test
This file contains 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
# this will fail, but change to m3.xlarge and it will work | |
ec2-run-instances ami-ad184ac4 -g <your sec group here> -k <your key here> -t c3.xlarge -b '/dev/sdb=ephemeral0' -b '/dev/sdc=ephemeral1' | |
## init machine with new kernel, reboot | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
sudo apt-get update | |
sudo apt-get install linux-image-extra-`uname -r` | |
sudo reboot | |
#install docker | |
sudo apt-get install -y lxc-docker | |
#docker iperf server | |
sudo docker run -i -t -name tt1 -p 5001 ubuntu /bin/bash | |
apt-get install -y iperf && iperf -s | |
# docker iperf client | |
sudo docker run -i -t -link tt1:tt1 ubuntu /bin/bash | |
apt-get install -y iperf && iperf -f m -c $TT1_PORT_5001_TCP_ADDR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment