gliderlabs / gliderlabs/docker-consul

joining: i/o timeout

Open
#81 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.1k
Forks
270
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.