I made a swarm of service global cadvisor, whole cluster has 20 machine only eight machine can access other normal all error "connect: connection refused"
The configuration of the network is
Ports:
8080-7080:
Networks:
- monitor - overlay
Networks:
Monitor - overlay:
External: true
I found two machine comparing
192.168.0.242:7080
Container IP is 10.253.0.3:8080
192.168.0.243:7080
Container IP is 10.253.0.7:8080
I am now in another machine on the container
192.168.0.244
Container IP is 10.253.0.16
Wget 192.168.0.242:7080
Wget 10.253.0.3:8080
Wget 10.253.0.7:8080
Can often visit the
Which is across the host container visits can
Use to access the host IP + mapper can access
Only
Wget 192.168.0.243:7080
Can't access don't know what's wrong
Don't know how to query the
I also in two containers netstat anl looked
TCP 0 0: : : 8080: : : * LISTEN 1/cadvisor
This is the same as
I also looked at the two hosts
Netstat anpl | grep 7080
Tcp6 0 0: : : 7080: : : * LISTEN 32155/dockerd
Open the 7080
The iptables don't know much about
The iptables - L - n
But I saw the two machines things like
ACCEPT the TCP - 0.0.0.0/0 0.0.0.0/0 TCP DPT: 7080
ACCEPT the TCP - 0.0.0.0/0 0.0.0.0/0 state RELATED, ESTABLISHED TCP SPT: 7080
Firewall - CMD - state
- bash: firewall - CMD: command not found
As if we didn't install firewall