Docker Community Forums

Share and learn in the Docker community.

Containers on different hosts are not reachable

docker

(Theindra) #1

I have a stack with 2 servcies:

  1. dockercloud/haproxy as load balancer
  2. mycustom/nginx for ssl termination

I have 2 hosts and each service has 2 containers. One on every host.
Host 1:

  • Haproxy-1 (IP: 10.7.0.10)
  • Nginx-1 (IP: 10.7.0.5)

Host 2:

  • Haproxy 2 (IP: 10.7.0.7)
  • Nginx 2 (IP: 10.7.0.9)

The problem is that i can’t connect from a container on host 1 to a container on host 2.
When connecting on host 1 and trying to traceroute Haproxy 2 (10.7.0.7) i get this:

traceroute to 10.7.0.7 (10.7.0.7), 30 hops max, 60 byte packets
1 10.7.255.254 (10.7.255.254) 2997.863 ms !H 2997.704 ms !H 2997.684 ms !H

Any suggestions how to fix this?