swarmkit icon indicating copy to clipboard operation
swarmkit copied to clipboard

Ports not published to the service name ip when using a network plugin (weave)

Open jamshid opened this issue 6 years ago • 1 comments

When I deploy this v3.7 docker-compose.yml stack onto a two node docker 19.0.3.4 swarm cluster using the overlay network it works as expected -- service names can be used on the network and ports are accessible. https://gist.github.com/jamshid/bf5dcdb0ae1b505a636b33ca5ebfba4b Unfortunately it doesn't work when using the "weave" network plugin:

NETWORK_DRIVER=weaveworks/net-plugin:latest_release docker stack deploy -c ./docker-compose.yml voteapp

docker run -ti --network voteapp_voteapp centos curl --head http://result-app:80 http://voting-app:80

I filed https://github.com/weaveworks/weave/issues/3734 but they think it is probably a change or bug with docker or swarm network plugins. In the similar issue https://github.com/weaveworks/weave/issues/3382 some people claimed downgrading to 18.03 fixed the problem, so maybe something broke with network plugins 18.06?

My example yml is based on the common voting app sample https://github.com/dockersamples/example-voting-app and should be easy to deploy then test with the curls in my gist.

Is there any other network plugin I can use besides "overlay" or "weave" to try to narrow down the problem? Is there anything else I could provide to help?

jamshid avatar Nov 12 '19 19:11 jamshid

@GordonTheTurtle @thaJeztah : any plans of fixing this "key" feature in upcoming release?

sunilthemaster avatar Sep 21 '20 11:09 sunilthemaster