Docker Community Forums

Share and learn in the Docker community.

Docker on muli-homed host - binding configuration

I’m trying to get docker to bind to just a single IP address on the host (multiple IPs setup), so that I can use the other host IP to bind an IIS website. In this case, I’m using Windows 2019, but the question would be relevant for 2016 as well. Is there some way to do this perhaps with the daemon.json file? If so, what setting is used. It seems the file on linux offers the option to put in an IP, but that line doesn’t work under windows.

anyone done this before? Essentially I want one website on the host IIS bound to one IP, and then I want to launch a proxy container bound to the other IP on the host. Default behaviour seems to be that docker attaches to 0.0.0.0 on the host and thus all addresses.