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

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.

主站蜘蛛池模板: 洪湖市| 出国| 昂仁县| 鹿邑县| 九寨沟县| 上饶县| 舟山市| 龙游县| 临桂县| 高淳县| 屏山县| 额尔古纳市| 驻马店市| 石家庄市| 呼玛县| 八宿县| 云浮市| 武夷山市| 包头市| 乐至县| 平度市| 扶风县| 鞍山市| 安庆市| 邹城市| 扶余县| 枣庄市| 宝清县| 蒙山县| 佛山市| 安乡县| 余庆县| 云龙县| 永仁县| 遂溪县| 修水县| 太谷县| 马尔康县| 儋州市| 渝北区| 河源市|