Closed tbolis closed 6 years ago
What does docker service ls
show. I.E what is the name of the docker stack you are launching with that compose file. Your service name would be [stack-name]_server
, rather than just server
Yes indeed I cut some details for simplicity here is how docker service ls
looks like:
I start the stack with docker stack deploy -c docker-stack.yml tbolis
ID NAME MODE REPLICAS IMAGE PORTS
s1cil4jcxu8z tbolis_server replicated 1/1 tbolis/server:latest *:5701-5801->5701-5801/tcp, *:8200->8200/tcp
kedgxaguyri6 tbolis_socat replicated 1/1 bobrik/socat:latest *:2375->2375/tcp
Yes so your properties.put("docker-service-names","server");
should instead be properties.put("docker-service-names","tbolis_server");
that did the trick! I changed as well the network name in the same manner. So closing this and thank you very much for your effort!
cheers
Hi,
I'm trying to setup my application to utilize your discovery spi but I'm getting the following error
I follow instructions from Option 1 in your instructions and I setup a
SwarmMemberAddressProvider
programmatically.I'm playing on a OSX machine therefore I utilize bobrik/socat
Note that from within the
server
container I get a reploy fromhttp://socat:2375/networks
normallyAny idea why is this happening?
Thanks