Resolved: Windows Container networking: transparent network: Unable to curl container

I have created a docker images with following dockerfile

FROM golang:1.7.3-nanoserver

ADD simplehttp.go C:/gopath/simplehttp.go

EXPOSE 8081

CMD go run simplehttp.go

By running:
docker run -p 8081:8081 simplehttp:v1

I could curl to the docker host(which is the VM) 192.168.122.236:8081 from my PC

However:

docker network create -d transparent MyTransparentNetwork

docker run --network=MyTransparentNetwork simplehttp:v1

I could not curl to the container(192.168.122.220:8081) attached to
transparent network however I could ping the container with the
transparent ip(192.168.122.220) from my PC.

I wonder what I could have missed.

Hi, has been met everything mentioned here (MSDN)?

Yes, I think pretty much is ok because the ip was assigned by the hypervisor host. I could ping the tp ip but only I could not get to web http.

Hi,
try include the following main.go instead of your simplehttp.go.

And then expose 8080 and access via IP of the container and 8080 port. My container is working as expected:

Ok i finally figure it out. It was windows firewall which was blocking it. It was working after all.