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

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.

主站蜘蛛池模板: 衡阳市| 张家口市| 房产| 温泉县| 清徐县| 曲阜市| 抚州市| 剑川县| 云和县| 军事| 保山市| 桑植县| 晋宁县| 怀仁县| 平舆县| 西贡区| 铅山县| 万源市| 东方市| 青河县| 肥城市| 依安县| 曲麻莱县| 剑川县| 沙田区| 陆丰市| 遵义市| 上栗县| 布尔津县| 景德镇市| 博爱县| 天祝| 炉霍县| 从化市| 历史| 衡东县| 巫山县| 山阳县| 伊宁市| 嘉义市| 克拉玛依市|