Docker Community Forums

Share and learn in the Docker community.

Access a Container by IP address

beta

(Max Bucknell) #1

In the latest betas, it is possible to map a port on the host, to a port on the container. I’m not 100% sure what’s happening underneath, but that’s how it appears. This is cool, because it works the same way that Docker works on Linux hosts.

However, on Linux it is also possible to access a container by IP address, removing the need for port mapping. This is handy if you want to run multiple projects at once, and have host entries for them.

Is there a plan to add this feature? I imagine something like reserving a private block on the host, and then mapping those to containers inside the VM running the daemon would work, but I don’t know a lot.

Anyway, this would be really helpful to me, at any rate.


Unable to connect to port 4243 on localhost
(Alexandre) #2

You might want to look into these threads: