Docker for Windows runs in a virtual machine and therefore it needs a little bit more settings to expose the ports of the docker.
Expose ports from 172.17.0.X (container IP) to 192.168.99.X (Virtual Box IP)
- Either use
docker-machine lsto get the Virtual Box IP. (Probably for Docker Toolbox only)
netsh interface portproxy add v4tov4 listenport=445 listenaddress=0.0.0.0 connectport=32791 connectaddress=192.168.99.100
netsh interface portproxy delete v4tov4 listenport=445 listenaddress=0.0.0.0
netsh interface portproxy show v4tov4
Simply listen on the Virtual Box IP, as the docker container should be on this interface
Similar as above, but note that the
connectport should be the direct port that is listened by the container.
Add a route using
netsh interface ipv4 add route 192.168.1.100/32 metric=10 12 188.8.131.52