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

  • ActiveMQ topic wildcards not working
  • Docker environment variables, dokku-redis
  • how do I clean up /dev/mapper/docker and release space?
  • Rabbitmq cluster setup in Kubernetes
  • debian8 server running docker crashes for 5 times guiding to null pointer in one month, but others with same hardware config ran normally
  • Should servlet running under tomcat in a container exit when it is not able to reach DB container?
  • Docker scale with one-to-one links
  • Is it possible to directly call docker run from AWS lambda
  • Docker-compose: Can I automate compose to run commands inside a container?
  • Mounting nginx conf as a docker volume causes system error boot2docker
  • Do I require a load balancer for a web service container in google cloud?
  • How to create postgis extension for postgresql in docker?
  • 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.