Docker Community Forums

Share and learn in the Docker community.

Static IP for a container


#1

I was wondering is there a way for me to access a Docker container from a client machine via a static IP instead of having to enter the Docker host’s IP with the forwarded port?

Currently I have a client virtual machine and a server virtual machine running Docker with an Apache container, and I can access the basic Hello World site I have set up if I open a browser (or curl from the client’s command line) and direct it to the server’s IP address with the aforementioned forwarded port.

I’m fairly new to Linux and containerization as a whole, so delete this if this is way out of line to be asking.


(JD) #2

Hi, i am using docker, i have installed tutum/tomcat to one container and that container is having one ip which i want to use from one different system which is in network. can any one please help me out with exact steps i need to do now.