You can connect the running container using the IP address and configured port, in the example shown. You use the docker inspect command to do that:ĭocker inspect -f "" my-running-site Once the container starts, you'll need to finds its IP address so that you can connect to your running container from a browser. This is because of a known behavior in WinNAT and you need to use the IP address of the container. If you are running an older host, you cannot use to browse your site from the container host. On older hosts (Windows Server, version 1709 and older) You can connect to the running container using in the example shown. Verify in the browser On newer hosts (Windows Server, version 1803 and newer) There is no need to specify an ENTRYPOINT in your Dockerfile since the microsoft/iis base image already includes an entrypoint application that monitors the status of the IIS World Wide Web Publishing Service (W3SVC). $ docker run -d -p 8000:80 -name my-running-site iis-site
0 Comments
Leave a Reply. |