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

  • Jenkins shell script add Unix user to group
  • How to expose docker container's ip and port to outside docker host without port mapping?
  • Docker Windows bridge ip conflict
  • Docker - Retrieve command line from an image
  • Kubernetes can't start successful with rancher/server
  • celery + rabbitmq on Docker
  • Understanding Docker best practices
  • Kubernetes failed to setup network for pod after executed kubeadm reset
  • Docker-compose - volumes driver local meaning
  • Provide only GRANT EXECUTE 'procedure' to a user (No select or insert permissions)
  • Docker volume: backup
  • How docker manage volumes when scaling up compose project?
  • 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.