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

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.

主站蜘蛛池模板: 西林县| 左贡县| 邻水| 昌邑市| 昌宁县| 岳普湖县| 磐安县| 上饶县| 扬州市| 武穴市| 衡山县| 雅江县| 揭阳市| 丰城市| 绥中县| 离岛区| 永宁县| 宾阳县| 界首市| 东乌珠穆沁旗| 宁国市| 女性| 徐汇区| 托里县| 柳州市| 翁牛特旗| 城固县| 潢川县| 景东| 麻江县| 赤峰市| 保山市| 涡阳县| 伊川县| 屯昌县| 德令哈市| 兴和县| 瑞金市| 寿阳县| 阳新县| 镇远县|