Swarm Classic: a container clustering system. Not to be confused with Docker Swarm which is at https://github.com/docker/swarmkit
5.75k
stars
1.08k
forks
source link
DNS discovering service with same name in another stack #2949
Closed
markwylde closed 5 years ago
I'm not sure if this is a bug or by design, but it's not having the result I would expect.
one_web-one
andping web-two
. I will always connect toone_web-two
.one_web-two
andping web-one
. I will sometimes connect toone_web-one
but sometimes gettwo_web-one
.I would have expected that if I haven't referenced another stack, it would always default to the service inside of my stack?
Anyway, for now I can just give all services a unique name. Just wanted to check if this is a bug or expected?
Stack One:
Stack Two:
When I
dig web-one
from theweb-two
service in stack one I see:10.0.0.50 is actually
two_web-one
10.0.0.55 is actuallyone_web-one
(or what I would expectweb-one
to resolve to)Am I missing something?