- 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.
推薦閱讀
- Java Web開發學習手冊
- 企業級Java EE架構設計精深實踐
- Learning Docker
- C#編程入門指南(上下冊)
- SQL for Data Analytics
- 編譯系統透視:圖解編譯原理
- SSM輕量級框架應用實戰
- SAP BusinessObjects Dashboards 4.1 Cookbook
- Hands-On Automation Testing with Java for Beginners
- RabbitMQ Cookbook
- Node.js:來一打 C++ 擴展
- Unity Character Animation with Mecanim
- Backbone.js Testing
- 深入實踐DDD:以DSL驅動復雜軟件開發
- Software-Defined Networking with OpenFlow(Second Edition)