mercredi 1 février 2017

Follow docker port mapping inside container

I have a cloud pc with static external ip, f.e. 162.243.100.100 Inside I installed docker with nginx, and mapped 80 port like this

docker run -it -p 80:80 nginx

I'm able to access nginx demo page from curl 162.243.100.100 from host machine.
I'm able to access nginx demo page from curl localhost from inside said container.

But I want to have able to access ngninx demo page from command curl 162.243.100.100 from inside said nginx containeer.
Seem this not follow port mapping, and just give me timeout error.
I thin I need to do something with network settings, but not know what.




Aucun commentaire:

Enregistrer un commentaire