endpoint-mode dnsrr not working?

Open
#1,312 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, go
Domain
networking

Research direction

Start by reproducing the docker service create command with --endpoint-mode dnsrr on the stated Docker 1.12.0-rc2 environment, then inspect why the service reports 0/2 replicas. Done means the service reaches 2/2 replicas and the containers are accessible through node-ip:8000 while using dnsrr.

Written by the indexing model from the issue text.

Description

When I create the service as follows:

docker service create --replicas 2 --network mynet --name whoami -p 8000:8000 --endpoint-mode dnsrr jwilder/whoami

I cannot access the containers using node-ip:8000. docker service always shows 0 replicas running.

$ docker service ls
ID NAME REPLICAS IMAGE COMMAND
8t2el9i65b3b whoami 0/2 jwilder/whoami

Things work just fine when I don't use --endpoint-mode parameter?

I am testing with 1.12.0-rc2.

I don't particularly care for the vip option as I only wanted to expose a service externally. Any ideas what could be amiss?

Dominant language
Go
Stars
2.2k
Forks
875
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moby/libnetwork

All issues in moby/libnetwork

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.