@EnableDiscoveryClient spring Boot service registration

i am running a spring boot application into docker container using eureka netflix service discovery with @EnableDiscoveryClient annotation.
Running my application, it registers itself into eureka with a specific ip address (that of the docker container).
i want to change this ip to the host machine ip address, so that my application will be registered into eureka with the host ip address were my container is running.

  • SSH connection fails to disconnect
  • Docker will not attach to an image
  • How to set password to a docker container
  • How to handle stage specific keystore in docker images
  • Docker public network configuration
  • Can i use Docker for creating exe using pyinstaller
  • How do I forward a docker-machine port to my host port on OSX?
  • When Marathon run all docker apps on same host the docker service stop
  • Docker: Monitor logical units of linked containers
  • Unable to ssh to master node in mesos local cluster installed system
  • How to remote debug python code in a Docker Container with VS Code
  • is it possible to speed up writes inside a docker container?
  • One Solution collect form web for “@EnableDiscoveryClient spring Boot service registration”

    Check this issue. This topic has already been discussed there – https://github.com/spring-cloud/spring-cloud-netflix/issues/432

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.