Starting experimenting with creating some Windows containers. Initially had everything working (from a docker perspectrive), shut down the laptop … went home … and then things stopped being accessible from localhost.
the container builds, I can run it and add -p 8080:8080 and docker reports everything is NATed, but if I run a netstat or try a test-netconnection nothing is listening to the port. TO make sure it wasnt me I then went and grabbed a Windows IIS container off the doicker hub … and it also refuses to work.
So it looks like ther emay be a bug in the WinNAT driver. I was able to get things working by going direclty after the IP of the container. I actuall did two steps, and I’m not 100% if they are related, but here they are:
First, I did some deep diving (ok I googled) and found references to the shared nat network. Went to check it with:
get-netnat
This returned no results. Well that’s fun. So setup a shared NAT network with the following command:
I’ve had the same happen in the past, but for some reason the restart didn’t seem to help, which is frustrating. I can continue to use the dedicated IP for now, until I can get to the bottom of this … guess I can at least be glad I’m not alone in seeing this.