Run eureka service in a docker container Run eureka service in a docker container docker docker

Run eureka service in a docker container


server:  port: 8761

You have that in your application.yml. Which means the application is running on port 8761 not 8080

You should try docker run -p 8761:8761 -t microservice/eureka-service


As this is getting some views: port forwarding is an option too. As the port is:

server:        port:8761

you can also forward it to port 8080, which is a very common port for tutorials and lectures:

docker run -p 8761:8080 -t microservice/eureka-service