- 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.
推薦閱讀
- Python自動(dòng)化運(yùn)維快速入門(mén)(第2版)
- Twilio Best Practices
- Apache Spark Graph Processing
- R語(yǔ)言編程指南
- 差分進(jìn)化算法及其高維多目標(biāo)優(yōu)化應(yīng)用
- Flux Architecture
- Go并發(fā)編程實(shí)戰(zhàn)
- 飛槳PaddlePaddle深度學(xué)習(xí)實(shí)戰(zhàn)
- QPanda量子計(jì)算編程
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)(第二版)
- 超簡(jiǎn)單:Photoshop+JavaScript+Python智能修圖與圖像自動(dòng)化處理
- Drupal Search Engine Optimization
- Implementing Splunk(Second Edition)
- 亮劍Java Web項(xiàng)目開(kāi)發(fā)案例導(dǎo)航
- Vue.js項(xiàng)目開(kāi)發(fā)實(shí)戰(zhàn)