Docker Community Forums

Share and learn in the Docker community.

How to expose my container to the outside world

Hello everyone
I am new to docker and first thing to do was run apache container on my ubuntu box.The command that i have used was [ docker run -d -p 50001:80 eboraas/apache-php ] if i browse localy from my ubuntu box i can access the container from whatever interface i try 127.0.0.1:50001 10.60.70.2:50001 .So next step was to forward port 50001 from my router to 10.60.70.2:50001 and hopefully access the container from example.com:50001 but unfortunately it doesn’t work i can’t access the container. If i do tcpdump -n port 50001 i can see the request coming from outside but if i do tcpdump in the container i can’t capture anything. Please check this schema on my network and if you have any advice on how to access the container from internet let me know

here is the link -> https://s16.postimg.org/m58pfnbr9/drawing1.png

I have found the problem it looks as the problem was in my mikrotik firewall .