joining: i/o timeout
Hi,
Using this image I stumble upon a problem joining an agent to a single server cluster. The errormessage is:
dial tcp 192.168.1.10:8301: i/o timeout (192.168.1.10 is private IP of cluster server and accessible from host)
I hope anybody can point me in the right direction. Best regards, Peter
the cluster server configuration is:
PRIVATE_IP=192.168.1.10 BRIDGE_IP=172.17.42.1 EXPECT=1
docker run -d --name consul -h $HOSTNAME
-p $PRIVATE_IP:8300:8300
-p $PRIVATE_IP:8301:8301
-p $PRIVATE_IP:8301:8301/udp
-p $PRIVATE_IP:8302:8302
-p $PRIVATE_IP:8302:8302/udp
-p $PRIVATE_IP:8400:8400
-p $PRIVATE_IP:8500:8500
-p $BRIDGE_IP:53:53/udp
-v "$PWD/data":/data
progrium/consul -server -advertise $PRIVATE_IP -bootstrap-expect $EXPECT
and the client configuration:
PRIVATE_IP=192.168.1.11 BRIDGE_IP=172.17.42.1
docker run -d --name consul -h $HOSTNAME
-p $PRIVATE_IP:8300:8300
-p $PRIVATE_IP:8301:8301
-p $PRIVATE_IP:8301:8301/udp
-p $PRIVATE_IP:8302:8302
-p $PRIVATE_IP:8302:8302/udp
-p $PRIVATE_IP:8400:8400
-p $PRIVATE_IP:8500:8500
-p $BRIDGE_IP:53:53/udp
-v "$PWD/data":/data
progrium/consul -advertise $PRIVATE_IP -join 192.168.1.10
Just some extra info:
- private IP addresses are using eth1, eth0 is public
- iptables is off on both sides
- both sides can ping each other with private ip adresses
Not sure. Try running in net=host mode. If that doesn't work, I'd take it upstream.