Docker Community Forums

Share and learn in the Docker community.

How to view IP addresses of HTTP clients in Docker Getting Started lab?


(Atsaloli) #1

Hi,

I’ve set up the stack described in https://docs.docker.com/get-started/

How do I see the IP addresses of the people hitting my Web service?

My Web service is called gslab_web and I can see the HTTP logs by running:

docker service logs gslab_web -f

but the IP addresses are Docker internal IP addresses, like 10.255.0.2 and 10.255.0.3. (I have two nodes in my swarm.)

I’ve got three services: web, redis and visualizer. How do I look at the load balancer’s logs? Or how am I supposed to get the public IP addresses? As a system administrator, I need to be able to see who is using the service.

Thanks! And I’ve enjoyed the Getting Started series, it’s been quite enlightening.

Aleksey