官术网_书友最值得收藏!

Running Windows containers

Now, let's create a process-isolated Windows container with our example web page. In Visual Studio Code, navigate to the Command Palette (Ctrl + Shift + P) and find the Docker: Run command. As the image, choose docker-helloworld-iis. A terminal with the appropriate command will open.

This is the equivalent to performing the docker run command in Powershell, as follows (if port tcp/80 on your host machine is already in use, use any other port that's available):

docker run -d --rm --isolation=process -p 80:80 docker-helloworld-iis

After successfully starting the container, navigate to http://localhost:80/ in a web browser. You should see the following output:

Next, we will be inspecting container logs, which are one of the most useful tools for debugging container issues.

主站蜘蛛池模板: 永仁县| 嘉黎县| 花垣县| 江源县| 靖远县| 象州县| 大名县| 德庆县| 琼结县| 尤溪县| 泰安市| 蓬溪县| 佛坪县| 报价| 松桃| 黑水县| 大英县| 乌兰浩特市| 防城港市| 台山市| 册亨县| 正阳县| 江西省| 克山县| 五峰| 连平县| 克什克腾旗| 通化市| 兴文县| 朔州市| 涪陵区| 宝丰县| 博兴县| 仪陇县| 河间市| 四会市| 青河县| 汾阳市| 巴林左旗| 汉川市| 吴川市|