Docker Community Forums

Share and learn in the Docker community.

How to do load balancing using Docker Container?

I am deploying micro services using docker. But when I use eureka it doesn’t point to my server’s ip but rather it is pointing to docker’s container’s ip. As docker’s ip is not static it will continuously change.
Eureka server is not pointing to my server ip but rather pointing to docker’s ip as it is detecting that. My server ip is accessible but when I hit with docker’s IP then I get error as that is not opened. I need to make IP static so that load balancing can be done when services are hit.