I'm trying to run a rather simple example of a swarm on Docker 1.12:
I have two services:
drupalapp mastermindg/rpi-apache2php7
drupaldb mysql:latest
Drupalapp has published port 80:
"Endpoint": {
"Spec": {
"Mode": "vip",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 80,
"PublishedPort": 80
}
]
},
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 80,
"PublishedPort": 80
}
],
"VirtualIPs": [
{
"NetworkID": "5citix4eeoe9isd2ainbt2uvn",
"Addr": "10.255.0.7/16"
},
{
"NetworkID": "6lgv0o648l7inrbu6abh5ac79",
"Addr": "10.0.9.4/24"
}
]
},
I have an overlay network:
swarmed "Subnet": "10.0.9.0/24",
"Gateway": "10.0.9.1"
The drupalapp instances are started and stable.
My problem is that even though I see port 80 listening on each node I can't reach port 80 on any host.
How do I connect to drupalapp running on my swarm?