Unable to access Eureka dashboard inside a docker container Unable to access Eureka dashboard inside a docker container docker docker

Unable to access Eureka dashboard inside a docker container


According to @PapEr's comment: You have to turn server.address to 0.0.0.0.

Why?

Listing on ports must be bind to a host. Read this for more informations.
With the address you can reduce the machines, which can talk to the port.

In Docker?

Normally you don't know the docker-ip, so you can't just set the address of your docker-container. You have only the choice between localhost or 0.0.0.0.
With localhost only connection from the inside of your docker-container are possible. In other words: No other applications can talk to your container, if you set localhost.
Since your containers have their own network and ip, I don't see any reason why address=0.0.0.0 is bad idea. Also in production.