Docker Community Forums

Share and learn in the Docker community.

Port mapping seems not working


(Salam Y. ELIAS) #1

Hi, I run a machine with the following switches
-p 1025:1025 -p 8025:8025
I understand that means that this allows to map a host port to the docker container.
In the browser, I type http://localhost:8025, I get page cannot be displayed but when I type
http://assignedIPByDocker:8025, the web site displays correctly and even in a command prompt I can ping the “assignedIPByDocker”.
In a command prompt on the host windows machine, I issue the following command
netstat -aon

I don’t any ip listening on port 1025 or 8025
Thanks for your help