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

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.

主站蜘蛛池模板: 东阳市| 曲周县| 屏山县| 宿松县| 巢湖市| 公安县| 孝昌县| 新竹县| 松潘县| 承德县| 广西| 台北县| 郁南县| 乐清市| 瑞安市| 黔东| 芦溪县| 上栗县| 西和县| 台山市| 乳源| 湘阴县| 英吉沙县| 司法| 东莞市| 鄂尔多斯市| 正定县| 三穗县| 雷州市| 乌鲁木齐县| 永济市| 合江县| 文化| 芜湖县| 牡丹江市| 张家口市| 恩施市| 宁强县| 商城县| 凤山县| 大兴区|