Docker Community Forums

Share and learn in the Docker community.

Connecting to windows service running inside windows container from Windows host machine

docker

(Sandeepmane2007) #1

Hi All,

I have built docker container using windowsservercore image. With this i am trying to install an exe silently inside the container which installs as a windows service on a specific port e.g. 5000. When I run the conatiner I see the software is installed and tasks are running when I list tasklist inside conatiner. This container is hosted on windows host. Now I am exposing this port 5000 to host port 10000 but I am not able to connect to this port.
I think may be i am not able to resolve IP of container(172.27.13.14) on the host machine(45.67.78.78).
Any pointers what I may be possible missing?

To run container i am using below command where myimage is image I built from dockerfile.
docker run -d -p 10000:5000 myimage

Thanks in advance!