2

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.

spencergibb
  • 24,471
  • 6
  • 69
  • 75
mootez
  • 334
  • 1
  • 7
  • 23

1 Answers1

1

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

Marcin Grzejszczak
  • 10,624
  • 1
  • 16
  • 32
  • but no clear answer. i did "docker run -h host_ip" but nohing changed. Eureka still register my application with container ip – mootez Feb 18 '16 at 10:30