Docker Community Forums

Share and learn in the Docker community.

Swarm Docker container not able to ping Host


(Arun280780) #1

Hi

Environment:
Docker Version : 18.06.1 CE
Compose : 1.21
Swarm Cluster: 3 Node Swarm Cluster.

Issue:
We have a 3 node setup with Swarm. For some reason the Containers which are up in a perticular node are not able to Ping / Curl to the HOST IP in which they are setup. If i try ping / curl to other node IP’s in my swarm cluster they are pingable.

We have similar setup in other VM’s they are all working fine. We are not able to figure out the reason for the same. Can some one please help.

Did any one of you face this problem before… ?

Blockquote
bash-4.3$ ping 10.0.0.82
PING 10.0.0.82 (10.0.0.82) 56(84) bytes of data.
^C
— 10.0.0.82 ping statistics —
5 packets transmitted, 0 received, 100% packet loss, time 3999ms
bash-4.3$ ping 10.0.0.81
PING 10.0.0.81 (10.0.0.81) 56(84) bytes of data.
64 bytes from 10.0.0.81: icmp_seq=1 ttl=62 time=0.287 ms
64 bytes from 10.0.0.81: icmp_seq=2 ttl=62 time=0.380 ms
64 bytes from 10.0.0.81: icmp_seq=3 ttl=62 time=0.405 ms
^C
— 10.0.0.81 ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.287/0.357/0.405/0.053 ms
bash-4.3$ ping 10.0.0.80
PING 10.0.0.80 (10.0.0.80) 56(84) bytes of data.
64 bytes from 10.0.0.80: icmp_seq=1 ttl=62 time=0.330 ms
64 bytes from 10.0.0.80: icmp_seq=2 ttl=62 time=0.386 ms
64 bytes from 10.0.0.80: icmp_seq=3 ttl=62 time=0.401 ms
^C
— 10.0.0.80 ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.330/0.372/0.401/0.034 ms
bash-4.3$