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
Post a Comment