@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.

  • how to bind ports with docker-py
  • How to correlate Docker image list with tag list both as returned by API?
  • Can't Connect to MongoDB on new Azure VM
  • Mariadb losses data after system is restarted
  • docker run command change to .yaml file
  • docker-proxy - Error starting userland proxy while trying to bind on 443
  • Dockerfile: skip passphrase for private key
  • HDFS as volume in cloudera quickstart docker
  • Save a file generated by app running on docker to a given path in the host machine
  • Elastic Beanstalk Multicontainer Docker with private repository CannotPullContainerError
  • Can't find Docker data volume on host
  • Executing multiple commands( or from a shell script) in a kubernetes pod
  • 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.