-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compose v3.2 endpoint_mode not working with dnsrr #32575
Comments
This was fixed in #32333, will be in 17.05 |
This error still exits: I tried the fixed endpoint_mode into version 17.05 and it raises the error:
Compose content
Docker version
|
I just experienced this bug. If you set
It sets it correctly when ``endpoint_mode: dnsrr
I needed to remove the stack completely and redeploy it to make the changes actually apply. |
Description
When deploying an app with
docker stack deploy
that hasendpoint_mode
set todnsrr
, it fails to create the service correctly.Steps to reproduce the issue:
docker stack deploy
:docker stack deploy -c docker-compose.yml elasticsearch
Describe the results you received:
It should use
dnsrr
but doesn't.From the dockerd logs in debug:
docker stack deploy
:docker service create
:(Using a shorter example of
docker service create --name elasticsearch --env ES_JAVA_OPTS="-Xms1g -Xmx1g" --replicas 1 --endpoint-mode=dnsrr elasticsearch:5 elasticsearch -Enetwork.host=0.0.0.0 -Ediscovery.zen.ping.unicast.hosts=elasticsearch
)Describe the results you expected:
dnsrr
should be used as the compose file specifiesAdditional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
/cc @dnephin @ahromis
The text was updated successfully, but these errors were encountered: