Not able to bind to docker container port

I manage to have Windows Server 2016 and Windows Container installed in my VirtualBox for testing.

I also follow the guide here to build an image with iis installed.

  • Go Web app on AWS with Elastic Beanstalk not showing output in logs
  • How to keep a certain number of Docker containers running the same application and add/remove them as needed?
  • docker-compose dev/live containers with different packages
  • Docker - Install PHP 5.2.17 and php-gd
  • Is CloudFoundry compatible with Docker/CoreOS?
  • container is in waiting state, kubernetes, docker container
  • However I’m not able to bind port 80 from container to any port in the host, here’s how I run the container with port mapping and result of docker ps command:

    enter image description here

    I also try -p switch without explicitly telling the port mapping, but that doesn’t work either

    I tried to attach to the container and request the default iis web page using wget and everything seems fine:

    enter image description here

    And here’s result of the docker inspect the container, in the exposedports section, it says port 80/tcp is exported, but not sure why it’s not reflected in the host machine. Can someone give me an idea where I go wrong? Or is this a bug from Windows Container? I tried to post in msdn forum but their process of verifying account is really troublesome

  • Why does Docker “ancestry” API command not work?
  • Docker receiving multicast traffic
  • Performance issue while running Jira in a Docker container on a simple Photon VM on ESXi host
  • External Server mysql_connect No route to host
  • How to get Docker work properly from within the msys2 bash?
  • Docker tomcat 7 - welcome page access forbidden
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.