What if the docker deployment eureka service is not registered?

when using docker to deploy eureka, docker generates a network card by default, which leads to the failure of eureka client registration. I would like to ask you how to solve this problem. Baidu has tried all the methods

.
Sep.04,2021

I simply and rudely let the container bind to the host network to solve the problem. Add the parameter -- net host

when starting the container
Menu