Docker Community Forums

Share and learn in the Docker community.

Port-forwarding of container in self hosted node


(Endianogino) #1

Hi,

I’ve just started to get used to Docker Cloud and added a server-vm as a node to Docker Cloud and deployed the hello-world service to it.
On the endpoints tab of that container I get its address: http://hello-world-d34c6747-1.6a50e337.cont.dockerapp.io:32768
However the website is not reachable mainly because the dynamic assigned port 32768 is not open on my server. For testing purposes I can open that port but the next time I deploy a container or even redeploy the same container the port can change and it will be not reachable again.
So this brings me to my question. How should I setup my server-vm resp. nodes to deploy container to it which can be accessed via their address without opening all ports to my server.

regards