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

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.

主站蜘蛛池模板: 天柱县| 永川市| 玛纳斯县| 灵璧县| 祁东县| 瑞安市| 花莲县| 永平县| 许昌市| 略阳县| 枞阳县| 巴彦淖尔市| 龙门县| 铁岭县| 蚌埠市| 融水| 彝良县| 黄平县| 桐柏县| 澜沧| 资讯 | 五华县| 崇明县| 镇原县| 沽源县| 五常市| 微山县| 凤山市| 卢龙县| 临安市| 准格尔旗| 江津市| 钟山县| 临桂县| 潞城市| 黄骅市| 鄂温| 犍为县| 南丰县| 牡丹江市| 昆山市|