Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: Error response from daemon: failed to create endpoint tsung_slave1 on network bridge: Bind for 0.0.0.0:9050 failed: port is already allocated. #6

Open
valVk opened this issue Feb 13, 2016 · 0 comments

Comments

@valVk
Copy link

valVk commented Feb 13, 2016

Hi,

I'm fairly new in the tsung and docker.

and can't get how to run this image as cluster. Seems like I'm almost near the success, but somethin wrong with my config. Please tell me waht i'm doing wrong.

Here is my configuration

thanks

Initial script

#!/usr/bin/zsh

DIR=$(pwd)

#Master node
docker run -d \
   -p 21:22 \
   -p 4369:4369 \
   -p 9001-9050:9001-9050 \
   -h tsung_master \
   --add-host tsung_slave1:192.169.50.2 \
   --add-host tsung_slave2:192.169.50.3 \
   --name tsung \
   -v "$DIR/tests":/usr/local/tsung ddragosd/tsung-docker:1.6.0 \
   -f /usr/local/tsung/demo.xml start

#Slave nodes
docker run -d \
 -p 21:22 \
 -p 4369:4369 \
 -p 9001-9050:9001-9050 \
 -e "SLAVE=true" \
 -h tsung_slave1 \
 --name tsung_slave1 \
 --add-host tsung_master:192.169.50.1 \
 ddragosd/tsung-docker:1.6.0

docker run \
 -p 21:22 \
 -p 4369:4369 \
 -p 9001-9050:9001-9050 \
 -e "SLAVE=true" \
 -h tsung_slave2 \
 --name tsung_slave2 \
 --add-host tsung_master:192.169.50.1 \
 ddragosd/tsung-docker:1.6.0

hosts

192.169.2.1 tsung_master
192.169.2.2 tsung_slave1
192.169.2.3 tsung_slave2
192.169.2.4 tsung_slave3
192.169.2.5 tsung_slave4

ifconfig

docker0   Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
          inet addr:192.169.50.1  Bcast:0.0.0.0  Mask:255.255.255.0
          ....          
wlp58s0   Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
          inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0
          .....
 $ ip address show docker0
12: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:e2:c6:da:bd brd ff:ff:ff:ff:ff:ff
    inet 192.169.50.1/24 scope global docker0
       valid_lft forever preferred_lft forever
    inet 169.254.43.169/16 brd 169.254.255.255 scope global docker0
       valid_lft forever preferred_lft forever
    inet 192.169.50.2/24 scope global secondary docker0
       valid_lft forever preferred_lft forever
    inet 192.169.50.3/24 scope global secondary docker0
       valid_lft forever preferred_lft forever
    inet 192.169.50.4/24 scope global secondary docker0
       valid_lft forever preferred_lft forever
    inet 192.169.50.5/24 scope global secondary docker0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:e2ff:fec6:dabd/64 scope link 
       valid_lft forever preferred_lft forever
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant