Skip to content

Expecting one service instance when providing the host ip #667

@dyeshurun

Description

@dyeshurun
  • Docker version 19.03.1
  • Latest registrator
  • running registrator with
    -resync=10
    -cleanup
    -deregister=always
    -ip=192.168.34.195
    consul://consul:8500

I am running a container named "demo-service" and when I am querying the consul for its instances I get 2 instances - one with the provided ip and one with the docker internal ip. I expected to have only one instance with the provided ip (note that when I don't provide it I only get one instance with the internal ip)

Is this the expected behavior? is there a way to get only one instance?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions