docker - How to make the external host IP address assigned to container hostname? -


except --net=host, there method make container's hostname bind external host ip address?

my projects need feature of port-forwarding lot, , quite containers on same node. --net=host doesn't meed requirements.

the -p hostport:containerport option made purpose. if want use same host ip in same port different applications apache virtual hosts. recommend using apache or nginx container reverse proxy using hostnames

regards


Comments

Popular posts from this blog

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -