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

Preparing a Visual Studio Code workspace

The first step is preparing the Visual Studio Code workspace. Visual Studio Code requires you to install an additional extension for managing Docker. Let's get started:

  1. In order to do that, open the Extensions view by pressing Ctrl Shift X.
  2. In Extensions: Marketplace, search for docker and install the official Docker extension from Microsoft: 

All of the operations demonstrated in this section can be performed without Visual Studio Code, in any code/text editor and using the command line. Visual Studio Code is a useful, multi-platform IDE for developing and testing applications running in Docker containers.

After the installation is complete, Docker Explorer will become available:

  1. You can also leverage new Docker-oriented commands from the Command Palette after pressing Ctrl Shift + P and typing docker into the search bar:

  1. Now, initialize the workspace by opening the desired folder using the Ctrl KCtrl O shortcut or navigating to File | Open Folder....

In the next subsection, we will create a demonstration HTML web page that will be hosted inside the Windows container.

主站蜘蛛池模板: 淄博市| 伽师县| 甘肃省| 台州市| 禄丰县| 临邑县| 安西县| 宁夏| 花莲县| 溧水县| 象州县| 安仁县| 营山县| 东宁县| 苍山县| 临泉县| 平陆县| 甘南县| 宝兴县| 绥德县| 墨竹工卡县| 灵丘县| 都安| 嘉鱼县| 石林| 博罗县| 通化县| 卢氏县| 绵竹市| 永登县| 汉阴县| 武冈市| 阿荣旗| 巴青县| 张家口市| 衡阳市| 揭西县| 米脂县| 绥宁县| 宜黄县| 吕梁市|