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

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.

主站蜘蛛池模板: 开封县| 深圳市| 桃园县| 开鲁县| 和平区| 鄱阳县| 康马县| 长宁区| 阳江市| 宣化县| 大冶市| 汕头市| 建水县| 东明县| 南澳县| 理塘县| 万全县| 同江市| 宜都市| 湘潭县| 乡城县| 东方市| 中超| 林甸县| 漠河县| 彰化市| 马鞍山市| 宿松县| 静安区| 长阳| 循化| 临颍县| 祥云县| 东平县| 休宁县| 尖扎县| 大渡口区| 蕲春县| 甘孜| 五华县| 都安|