Skip to content

1.12.0-rc3: Can't curl to service vip from inside container #24377

Description

@jfbibeau

Steps to reproduce the issue:

  1. Init swarm (node a)
  2. Join 2 nodes (node b, node c)
  3. docker service create --name tomcat --publish 8180:8180 private-repo/tomcat
  4. Exec bash into the container
  5. curl -v tomcat:8180
    -> Tries IP 10.255.0.6 (which is the VIP) -> fails, No route to host
  6. curl -v tasks.tomcat:8180
    -> Tries IP 10.255.0.7 (which is the IP of the container) -> works.

Describe the results you received:
Can curl to the container IP from itself, but can't curl to the VIP
Additionally, if I start a new service on the same default network, and try to reach the container IP (tasks.tomcat) or the service VIP, neither work.

Describe the results you expected:
Should be able to curl to the VIP resolved by DNS...

Additional information you deem important (e.g. issue happens only occasionally):
100% reproducible. What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions