- Hands-On Kubernetes on Windows
- Piotr Tylenda
- 132字
- 2021-06-24 16:53:59
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.
推薦閱讀
- Boost.Asio C++ Network Programming(Second Edition)
- 計算機網絡
- 微信公眾平臺與小程序開發:從零搭建整套系統
- Docker進階與實戰
- Spring技術內幕:深入解析Spring架構與設計
- Microsoft Dynamics 365 Extensions Cookbook
- WSO2 Developer’s Guide
- Java程序設計與實踐教程(第2版)
- Learning Python Design Patterns(Second Edition)
- 細說Python編程:從入門到科學計算
- 遠方:兩位持續創業者的點滴思考
- 人人都能開發RPA機器人:UiPath從入門到實戰
- JavaScript編程精解(原書第2版)
- 從零開始學Python大數據與量化交易
- Java EE 7 Development with WildFly