Sep 21, 2018

[HDGEM] How to bind docker ports to the host

You can supply -P or --publish-all=true|false to docker run which is a blanket operation that identifies every port with an EXPOSE line in the image's Dockerfile or --expose <port> commandline flag and maps it to a host port somewhere within an ephemeral port range. 

When you invoke docker run you can use either -p IP:host_port:container_port or -p IP::port to specify the external interface for one particular binding.

Posted By Blogger to HDGEM at 5/23/2017 09:24:00 AM